mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
ObjectController: use setViewScript, not render
This commit is contained in:
parent
311f9da850
commit
dc43a40b41
@ -135,7 +135,7 @@ abstract class ObjectController extends ActionController
|
|||||||
$this->translate('Config preview: %s'),
|
$this->translate('Config preview: %s'),
|
||||||
$object->object_name
|
$object->object_name
|
||||||
);
|
);
|
||||||
$this->render('object/show', null, true);
|
$this->setViewScript('object/show');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function editAction()
|
public function editAction()
|
||||||
@ -254,7 +254,7 @@ abstract class ObjectController extends ActionController
|
|||||||
->loadTable('icingaObjectDatafield')
|
->loadTable('icingaObjectDatafield')
|
||||||
->setObject($object);
|
->setObject($object);
|
||||||
|
|
||||||
$this->render('object/fields', null, true);
|
$this->setViewScript('object/fields');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function historyAction()
|
public function historyAction()
|
||||||
@ -274,7 +274,7 @@ abstract class ObjectController extends ActionController
|
|||||||
->setLastDeployedId($lastDeployedId)
|
->setLastDeployedId($lastDeployedId)
|
||||||
->filterObject('icinga_' . $type, $this->object->object_name)
|
->filterObject('icinga_' . $type, $this->object->object_name)
|
||||||
);
|
);
|
||||||
$this->render('object/history', null, true);
|
$this->setViewScript('object/history');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getType()
|
protected function getType()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user