mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-15 23:08:11 +02:00
ObjectController: allow to edit fields
This commit is contained in:
parent
5cbe07e95b
commit
1a553df185
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user