Update WidgetArea.php

This commit is contained in:
rasstislav 2016-09-25 14:18:47 +02:00 committed by GitHub
parent 0986537be7
commit 8a6308fc00

View File

@ -33,10 +33,12 @@ class WidgetArea extends DataObject
$items = $this->ItemsToRender();
if (!is_null($items)){
foreach ($items as $widget) {
$controller = $widget->getController();
if ($widget->canView()) {
$controller = $widget->getController();
$controller->init();
$controllers->push($controller);
$controller->init();
$controllers->push($controller);
}
}
}
return $controllers;