mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-12-23 03:19:00 +00:00
Add a check to allow searching w/o prefix id
This commit is contained in:
parent
1f2b9389f7
commit
bc16e63018
@ -128,7 +128,7 @@ class PullsModel extends \JModelDatabase
|
|||||||
|
|
||||||
if (!empty($search))
|
if (!empty($search))
|
||||||
{
|
{
|
||||||
if (stripos($search, 'id:') === 0)
|
if (stripos($search, 'id:') === 0 || is_numeric($search))
|
||||||
{
|
{
|
||||||
$query->where($db->quoteName('a.id') . ' = ' . (int) substr($search, 3));
|
$query->where($db->quoteName('a.id') . ' = ' . (int) substr($search, 3));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user