From de4b890e8be56a3e32b23838950af41503057d07 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 20 Sep 2022 12:30:06 +0200 Subject: [PATCH] IcingaServiceSetForm: use host, not host_id --- application/forms/IcingaServiceSetForm.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/forms/IcingaServiceSetForm.php b/application/forms/IcingaServiceSetForm.php index d4841a1b..21508d51 100644 --- a/application/forms/IcingaServiceSetForm.php +++ b/application/forms/IcingaServiceSetForm.php @@ -69,7 +69,8 @@ class IcingaServiceSetForm extends DirectorObjectForm } $this->addHidden('object_type', 'object'); - $this->addHidden('host_id', $this->host->id); + $this->addHidden('host', $this->host->getObjectName()); + $this->groupMainProperties(); } public function setHost(IcingaHost $host) @@ -77,6 +78,7 @@ class IcingaServiceSetForm extends DirectorObjectForm $this->host = $host; return $this; } + protected function addSingleImportsElement() { $enum = $this->enumAllowedTemplates();