diff --git a/library/Director/Web/Controller/ObjectController.php b/library/Director/Web/Controller/ObjectController.php index 6f442be6..ed8b4adc 100644 --- a/library/Director/Web/Controller/ObjectController.php +++ b/library/Director/Web/Controller/ObjectController.php @@ -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();