mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-02-02 11:58:26 +00:00
Merge pull request #120 from andrepereiradasilva/patch-1
Resolve issue when searching by pull id "id:xxxxx"
This commit is contained in:
commit
2ec503f642
@ -130,11 +130,11 @@ class PullsModel extends \JModelDatabase
|
||||
{
|
||||
if (stripos($search, 'id:') === 0)
|
||||
{
|
||||
$query->where($db->quoteName('a.id') . ' = ' . (int) substr($search, 3));
|
||||
$query->where($db->quoteName('a.pull_id') . ' = ' . (int) substr($search, 3));
|
||||
}
|
||||
elseif (is_numeric($search))
|
||||
{
|
||||
$query->where('(' . $db->quoteName('a.id') . ' LIKE % ' . (int) $search . '%)');
|
||||
$query->where($db->quoteName('a.pull_id') . ' LIKE ' . $db->quote('%' . (int) $search . '%'));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user