From dc43a40b41744d1f08cb0b1bfc44746dac41b7e4 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sat, 26 Mar 2016 16:45:06 +0100 Subject: [PATCH] ObjectController: use setViewScript, not render --- library/Director/Web/Controller/ObjectController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/Director/Web/Controller/ObjectController.php b/library/Director/Web/Controller/ObjectController.php index 2dafc87f..db79a5ca 100644 --- a/library/Director/Web/Controller/ObjectController.php +++ b/library/Director/Web/Controller/ObjectController.php @@ -135,7 +135,7 @@ abstract class ObjectController extends ActionController $this->translate('Config preview: %s'), $object->object_name ); - $this->render('object/show', null, true); + $this->setViewScript('object/show'); } public function editAction() @@ -254,7 +254,7 @@ abstract class ObjectController extends ActionController ->loadTable('icingaObjectDatafield') ->setObject($object); - $this->render('object/fields', null, true); + $this->setViewScript('object/fields'); } public function historyAction() @@ -274,7 +274,7 @@ abstract class ObjectController extends ActionController ->setLastDeployedId($lastDeployedId) ->filterObject('icinga_' . $type, $this->object->object_name) ); - $this->render('object/history', null, true); + $this->setViewScript('object/history'); } protected function getType()