From 351c41cb3c19aaa7395bac6bb86baa0debea0655 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 6 Feb 2022 11:30:47 +0100 Subject: [PATCH] IcingaAddServiceForm: avoid duplicate get() call --- application/forms/IcingaAddServiceForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }