33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2025-02-11 07:58:25 +00:00

Merge pull request #75 from alikon/patch-1

PostgreSQL - error apply/revert a patch
This commit is contained in:
Michael Babker 2015-03-08 11:25:34 -04:00
commit ca761191fc

View File

@ -128,10 +128,11 @@ class PullsModel extends \JModelDatabase
if (!empty($search)) if (!empty($search))
{ {
$searchid = $search;
$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 ' .
'(' . $db->quoteName('a.pull_id') . ' LIKE ' . $search . ') ' '(' . $db->quoteName('a.pull_id') . ' = ' . $searchid . ') '
); );
} }