diff --git a/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php b/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php index b03148d..20f7a62 100644 --- a/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php +++ b/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php @@ -128,10 +128,14 @@ class PullsModel extends \JModelDatabase if (!empty($search)) { - if (stripos($search, 'id:') === 0 || is_numeric($search)) + if (stripos($search, 'id:') === 0) { $query->where($db->quoteName('a.id') . ' = ' . (int) substr($search, 3)); } + elseif (is_numeric($search)) + { + $query->where('(' . $db->quoteName('a.id') . ' LIKE "% ' . (int) $search . '%")'); + } else { $search = $db->quote('%' . $db->escape($search, true) . '%');