ObjectController: correctly load fields

This commit is contained in:
Thomas Gelf 2015-10-13 17:58:50 +02:00
parent ef46c9de56
commit 45e6cb9944
1 changed files with 4 additions and 1 deletions

View File

@ -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();