diff --git a/library/Director/Web/Controller/ObjectController.php b/library/Director/Web/Controller/ObjectController.php index 80d267a3..5639c328 100644 --- a/library/Director/Web/Controller/ObjectController.php +++ b/library/Director/Web/Controller/ObjectController.php @@ -223,7 +223,7 @@ abstract class ObjectController extends ActionController array('class' => 'icon-left-big') ); - $this->render('object/form', null, true); + $this->setViewScript('object/form'); } public function fieldsAction() diff --git a/library/Director/Web/Controller/ObjectsController.php b/library/Director/Web/Controller/ObjectsController.php index a097e25d..f4e84e14 100644 --- a/library/Director/Web/Controller/ObjectsController.php +++ b/library/Director/Web/Controller/ObjectsController.php @@ -173,7 +173,7 @@ abstract class ObjectsController extends ActionController $this->getTabs()->activate('tree'); $this->view->tree = $this->db()->fetchTemplateTree(strtolower($this->getType())); $this->view->objectTypeName = $this->getType(); - $this->render('objects/tree', null, true); + $this->setViewScript('objects/tree'); } protected function dummyObject()