mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 06:14:25 +02:00
parent
59dceb4729
commit
69db59a38e
@ -68,6 +68,13 @@ class DeleteDowntimeCommandForm extends CommandForm
|
|||||||
'filters' => array('Boolean')
|
'filters' => array('Boolean')
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
array(
|
||||||
|
'hidden',
|
||||||
|
'downtime_name',
|
||||||
|
array(
|
||||||
|
'decorators' => array('ViewHelper')
|
||||||
|
)
|
||||||
|
),
|
||||||
array(
|
array(
|
||||||
'hidden',
|
'hidden',
|
||||||
'redirect',
|
'redirect',
|
||||||
@ -86,8 +93,10 @@ class DeleteDowntimeCommandForm extends CommandForm
|
|||||||
public function onSuccess()
|
public function onSuccess()
|
||||||
{
|
{
|
||||||
$cmd = new DeleteDowntimeCommand();
|
$cmd = new DeleteDowntimeCommand();
|
||||||
$cmd->setDowntimeId($this->getElement('downtime_id')->getValue());
|
$cmd
|
||||||
$cmd->setIsService($this->getElement('downtime_is_service')->getValue());
|
->setDowntimeId($this->getElement('downtime_id')->getValue())
|
||||||
|
->setDowntimeName($this->getElement('downtime_name')->getValue())
|
||||||
|
->setIsService($this->getElement('downtime_is_service')->getValue());
|
||||||
$this->getTransport($this->request)->send($cmd);
|
$this->getTransport($this->request)->send($cmd);
|
||||||
|
|
||||||
$redirect = $this->getElement('redirect')->getValue();
|
$redirect = $this->getElement('redirect')->getValue();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user