From 45e6cb9944fe91fca27a1b0cd117df43256f64cc Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 13 Oct 2015 17:58:50 +0200 Subject: [PATCH] ObjectController: correctly load fields --- library/Director/Web/Controller/ObjectController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();