mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-05-29 03:50:46 +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());
|
$model = new $modelClass($this->context, null, Factory::getDbo());
|
||||||
|
|
||||||
// Initialize the state for the model
|
// 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
|
// Initialize the view class now
|
||||||
$view = new $viewClass($model, $paths);
|
$view = new $viewClass($model, $paths);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user