[icinga-checkins] icinga.org: icingaweb2/master: ActionsController: Pass the backend to downtime command forms

git at icinga.org git at icinga.org
Mon Feb 29 15:25:57 CET 2016


Module: icingaweb2
Branch: master
Commit: 1dca5bd123c38ce71d4c25cb8ddbc918fc13cc9c
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=1dca5bd123c38ce71d4c25cb8ddbc918fc13cc9c

Author: Johannes Meyer <johannes.meyer at netways.de>
Date:   Mon Feb 29 15:25:03 2016 +0100

ActionsController: Pass the backend to downtime command forms

fixes #11260

---

 modules/monitoring/application/controllers/ActionsController.php |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/monitoring/application/controllers/ActionsController.php b/modules/monitoring/application/controllers/ActionsController.php
index 2090c2c..06bbc8e 100644
--- a/modules/monitoring/application/controllers/ActionsController.php
+++ b/modules/monitoring/application/controllers/ActionsController.php
@@ -48,6 +48,7 @@ class Monitoring_ActionsController extends Controller
         $form = new ScheduleHostDowntimeCommandForm();
         $form
             ->setIsApiTarget(true)
+            ->setBackend($this->backend)
             ->setObjects($hostList->fetch())
             ->handleRequest($this->getRequest());
     }
@@ -96,6 +97,7 @@ class Monitoring_ActionsController extends Controller
         $form = new ScheduleServiceDowntimeCommandForm();
         $form
             ->setIsApiTarget(true)
+            ->setBackend($this->backend)
             ->setObjects($serviceList->fetch())
             ->handleRequest($this->getRequest());
     }



More information about the icinga-checkins mailing list