ObjectController: allow to edit fields

This commit is contained in:
Thomas Gelf 2015-09-14 16:54:43 +02:00
parent 5cbe07e95b
commit 1a553df185

View File

@ -156,11 +156,16 @@ abstract class ObjectController extends ActionController
$object->object_name
);
$this->view->form = $this
$form = $this->view->form = $this
->loadForm('icingaObjectField')
->setDb($this->db)
->setIcingaObject($object)
->handleRequest();
->setIcingaObject($object);
if ($id = $this->params->get('field_id')) {
$form->loadObject($id);
}
$form->handleRequest();
$this->view->table = $this
->loadTable('icingaObjectDatafield')