33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-11-15 17:47:10 +00:00

reenabled filter on id

This commit is contained in:
Nikolai Plath 2011-10-27 14:50:18 -05:00
parent 2c4f4f5774
commit 269f437dd9

View File

@ -118,6 +118,10 @@ class PatchtesterModelPulls extends JModelList
unset($pulls[$i]); unset($pulls[$i]);
continue; continue;
} }
if($searchId && $pull->number != $searchId) {
unset($pulls[$i]);
continue;
}
$matches = array(); $matches = array();
preg_match('#\[\#([0-9]+)\]#', $pull->title, $matches); preg_match('#\[\#([0-9]+)\]#', $pull->title, $matches);
$pull->joomlacode_issue = isset($matches[1]) ? $matches[1] : 0; $pull->joomlacode_issue = isset($matches[1]) ? $matches[1] : 0;
@ -128,16 +132,6 @@ class PatchtesterModelPulls extends JModelList
JFactory::getApplication()->enqueueMessage($e->getMessage(), 'error'); JFactory::getApplication()->enqueueMessage($e->getMessage(), 'error');
return array(); 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
*/
} }
} }