Skip to content

Commit 2f62b57

Browse files
committed
Reworking the pulls list to use native filter
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
1 parent cb1b242 commit 2f62b57

File tree

10 files changed

+71
-393
lines changed

10 files changed

+71
-393
lines changed

administrator/components/com_patchtester/PatchTester/Controller/AbstractController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function getInput()
9393
*
9494
* @since 2.0
9595
*/
96-
protected function initializeState(AbstractModel $model)
96+
protected function initializeState($model)
9797
{
9898
$state = new Registry;
9999

administrator/components/com_patchtester/PatchTester/Controller/DisplayController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function execute()
9797
*
9898
* @since 2.0
9999
*/
100-
protected function initializeState(AbstractModel $model)
100+
protected function initializeState($model)
101101
{
102102
$state = parent::initializeState($model);
103103
$app = $this->getApplication();

administrator/components/com_patchtester/PatchTester/Controller/FetchController.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,15 @@ public function execute()
4343
// Fetch our page from the session
4444
$page = $session->get('com_patchtester_fetcher_page', 1);
4545

46-
$model = new PullsModel('com_patchtester.fetch', null, Factory::getDbo());
46+
$model = new PullsModel;
4747

4848
// Initialize the state for the model
49-
$model->setState($this->initializeState($model));
49+
$state = $this->initializeState($model);
50+
51+
foreach ($state as $key => $value)
52+
{
53+
$model->setState($key, $value);
54+
}
5055

5156
$status = $model->requestFromGithub($page);
5257
}

0 commit comments

Comments
 (0)