ActionsController: Pass the backend to downtime command forms

fixes #11260
This commit is contained in:
Johannes Meyer 2016-02-29 15:25:03 +01:00
parent 9c5dfc5207
commit 1dca5bd123
1 changed files with 2 additions and 0 deletions

View File

@ -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());
}