ObjectController: correctly load fields
This commit is contained in:
parent
ef46c9de56
commit
45e6cb9944
|
@ -162,7 +162,10 @@ abstract class ObjectController extends ActionController
|
||||||
->setIcingaObject($object);
|
->setIcingaObject($object);
|
||||||
|
|
||||||
if ($id = $this->params->get('field_id')) {
|
if ($id = $this->params->get('field_id')) {
|
||||||
$form->loadObject($id);
|
$form->loadObject(array(
|
||||||
|
$type . '_id' => $object->id,
|
||||||
|
'datafield_id' => $id
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
$form->handleRequest();
|
$form->handleRequest();
|
||||||
|
|
Loading…
Reference in New Issue