From 86b9f8e96349966a67bdf53610be750a4f4c1d05 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 21 Aug 2017 10:32:58 +0200 Subject: [PATCH] ServiceController: pass Set to ServiceForm if any fixes #1031 --- application/controllers/ServiceController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php index ed9ea635..1eec7ebe 100644 --- a/application/controllers/ServiceController.php +++ b/application/controllers/ServiceController.php @@ -137,6 +137,9 @@ class ServiceController extends ObjectController $form = IcingaServiceForm::load()->setDb($this->db()); + if ($this->set) { + $form->setServiceSet($this->set); + } if ($this->host && $object->usesVarOverrides()) { $fake = IcingaService::create(array( 'object_type' => 'object',