mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-02-02 20:08:25 +00:00
Fixed the model state not being set correctly
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
parent
b3e7a90d37
commit
98e48eb411
@ -76,7 +76,12 @@ class DisplayController extends AbstractController
|
||||
$model = new $modelClass($this->context, null, Factory::getDbo());
|
||||
|
||||
// Initialize the state for the model
|
||||
$model->setState($this->initializeState($model));
|
||||
$state = $this->initializeState($model);
|
||||
|
||||
foreach ($state as $key => $value)
|
||||
{
|
||||
$model->setState($key, $value);
|
||||
}
|
||||
|
||||
// Initialize the view class now
|
||||
$view = new $viewClass($model, $paths);
|
||||
|
Loading…
x
Reference in New Issue
Block a user