mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-02-10 23:48:25 +00:00
Merge pull request #75 from alikon/patch-1
PostgreSQL - error apply/revert a patch
This commit is contained in:
commit
ca761191fc
@ -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 . ') '
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user