[icinga-checkins] icinga.org: icingaweb2-module-director/fiddle/mfrosch: ServiceController: keep applied service when sent

git at icinga.org git at icinga.org
Tue Jun 7 15:59:17 CEST 2016


Module: icingaweb2-module-director
Branch: fiddle/mfrosch
Commit: 4b183203f906e5408198959478cf0a35d00bd350
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=4b183203f906e5408198959478cf0a35d00bd350

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri May 27 11:08:34 2016 +0200

ServiceController: keep applied service when sent

---

 application/controllers/ServiceController.php |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php
index 3b51fa6..441bb5c 100644
--- a/application/controllers/ServiceController.php
+++ b/application/controllers/ServiceController.php
@@ -73,9 +73,7 @@ class ServiceController extends ObjectController
     protected function beforeHandlingAddRequest($form)
     {
         if ($this->apply) {
-            if (!$form->hasBeenSent()) {
-                $form->createApplyRuleFor($this->apply);
-            }
+            $form->createApplyRuleFor($this->apply);
         }
     }
 



More information about the icinga-checkins mailing list