mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-10 07:24:26 +02:00
ObjectController: correctly load fields
This commit is contained in:
parent
ef46c9de56
commit
45e6cb9944
@ -162,7 +162,10 @@ abstract class ObjectController extends ActionController
|
||||
->setIcingaObject($object);
|
||||
|
||||
if ($id = $this->params->get('field_id')) {
|
||||
$form->loadObject($id);
|
||||
$form->loadObject(array(
|
||||
$type . '_id' => $object->id,
|
||||
'datafield_id' => $id
|
||||
));
|
||||
}
|
||||
|
||||
$form->handleRequest();
|
||||
|
Loading…
x
Reference in New Issue
Block a user