Skip to content

Commit

Permalink
ActionsController: Pass the backend to downtime command forms
Browse files Browse the repository at this point in the history
fixes #11260
  • Loading branch information
Johannes Meyer committed Feb 29, 2016
1 parent 9c5dfc5 commit 1dca5bd
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -48,6 +48,7 @@ public function scheduleHostDowntimeAction()
$form = new ScheduleHostDowntimeCommandForm();
$form
->setIsApiTarget(true)
->setBackend($this->backend)
->setObjects($hostList->fetch())
->handleRequest($this->getRequest());
}
Expand Down Expand Up @@ -96,6 +97,7 @@ public function scheduleServiceDowntimeAction()
$form = new ScheduleServiceDowntimeCommandForm();
$form
->setIsApiTarget(true)
->setBackend($this->backend)
->setObjects($serviceList->fetch())
->handleRequest($this->getRequest());
}
Expand Down

0 comments on commit 1dca5bd

Please sign in to comment.