mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
ActionsController: Pass the backend to downtime command forms
fixes #11260
This commit is contained in:
parent
9c5dfc5207
commit
1dca5bd123
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user