diff --git a/application/forms/IcingaAddServiceForm.php b/application/forms/IcingaAddServiceForm.php index e5514246..df2302e9 100644 --- a/application/forms/IcingaAddServiceForm.php +++ b/application/forms/IcingaAddServiceForm.php @@ -154,7 +154,7 @@ class IcingaAddServiceForm extends DirectorObjectForm { if ($this->host !== null) { if ($id = $this->host->get('id')) { - $this->object->set('host_id', $this->host->get('id')); + $this->object->set('host_id', $id); } else { $this->object->set('host', $this->host->getObjectName()); }