33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-11-15 17:47:10 +00:00

Fix search

To test 
Before PR
Enter any value in the filter column and you get an error
After PR
Make sure that text and numeric filters work
This commit is contained in:
Brian Teeman 2015-05-23 12:08:25 +01:00
parent 60165e4721
commit b64ae94069

View File

@ -128,7 +128,7 @@ class PullsModel extends \JModelDatabase
if (!empty($search)) if (!empty($search))
{ {
$searchid = $search; $searchid = $db->quote($db->escape($search, true));
$search = $db->quote('%' . $db->escape($search, true) . '%'); $search = $db->quote('%' . $db->escape($search, true) . '%');
$query->where( $query->where(
'(' . $db->quoteName('a.title') . ' LIKE ' . $search . ') OR ' . '(' . $db->quoteName('a.title') . ' LIKE ' . $search . ') OR ' .