From 0557bf1bf8ee4dc818766ab7e6933541b6e229c9 Mon Sep 17 00:00:00 2001 From: andrepereiradasilva Date: Fri, 12 Feb 2016 10:20:30 +0000 Subject: [PATCH] Resolve issue when searching by id "id:xxxxx" --- .../com_patchtester/PatchTester/Model/PullsModel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php b/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php index 799f8e3..349e9f4 100644 --- a/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php +++ b/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php @@ -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 % ' . (int) $search . '%)'); } else {