diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php index 0f7b0a1c..82c5c9d4 100644 --- a/library/Director/Web/Form/DirectorObjectForm.php +++ b/library/Director/Web/Form/DirectorObjectForm.php @@ -372,6 +372,16 @@ abstract class DirectorObjectForm extends QuickForm return $this->object; } + public function setObject(IcingaObject $object) + { + $this->object = $object; + if ($this->db === null) { + $this->setDb($db); + } + + return $this; + } + protected function getObjectClassname() { if ($this->className === null) {