From 269f437dd9bba620dd5cfd270c08b398e4bf2ec2 Mon Sep 17 00:00:00 2001 From: Nikolai Plath Date: Thu, 27 Oct 2011 14:50:18 -0500 Subject: [PATCH] reenabled filter on id --- .../components/com_patchtester/models/pulls.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/administrator/components/com_patchtester/models/pulls.php b/administrator/components/com_patchtester/models/pulls.php index 4dda122..2492079 100644 --- a/administrator/components/com_patchtester/models/pulls.php +++ b/administrator/components/com_patchtester/models/pulls.php @@ -118,6 +118,10 @@ class PatchtesterModelPulls extends JModelList unset($pulls[$i]); continue; } + if($searchId && $pull->number != $searchId) { + unset($pulls[$i]); + continue; + } $matches = array(); preg_match('#\[\#([0-9]+)\]#', $pull->title, $matches); $pull->joomlacode_issue = isset($matches[1]) ? $matches[1] : 0; @@ -128,16 +132,6 @@ class PatchtesterModelPulls extends JModelList JFactory::getApplication()->enqueueMessage($e->getMessage(), 'error'); return array(); -/*======= - if($searchId && $pull->number != $searchId) { - unset($pulls[$i]); - continue; - } - $matches = array(); - preg_match('#\[\#([0-9]+)\]#', $pull->title, $matches); - $pull->joomlacode_issue = isset($matches[1]) ? $matches[1] : 0; ->>>>>>> ordering -*/ } }