Skip to content

Commit 98e48eb

Browse files
committed
Fixed the model state not being set correctly
Signed-off-by: Roland Dalmulder <[email protected]>
1 parent b3e7a90 commit 98e48eb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ public function execute()
7676
$model = new $modelClass($this->context, null, Factory::getDbo());
7777

7878
// Initialize the state for the model
79-
$model->setState($this->initializeState($model));
79+
$state = $this->initializeState($model);
80+
81+
foreach ($state as $key => $value)
82+
{
83+
$model->setState($key, $value);
84+
}
8085

8186
// Initialize the view class now
8287
$view = new $viewClass($model, $paths);

0 commit comments

Comments
 (0)