parent
59dceb4729
commit
69db59a38e
|
@ -68,6 +68,13 @@ class DeleteDowntimeCommandForm extends CommandForm
|
|||
'filters' => array('Boolean')
|
||||
)
|
||||
),
|
||||
array(
|
||||
'hidden',
|
||||
'downtime_name',
|
||||
array(
|
||||
'decorators' => array('ViewHelper')
|
||||
)
|
||||
),
|
||||
array(
|
||||
'hidden',
|
||||
'redirect',
|
||||
|
@ -86,8 +93,10 @@ class DeleteDowntimeCommandForm extends CommandForm
|
|||
public function onSuccess()
|
||||
{
|
||||
$cmd = new DeleteDowntimeCommand();
|
||||
$cmd->setDowntimeId($this->getElement('downtime_id')->getValue());
|
||||
$cmd->setIsService($this->getElement('downtime_is_service')->getValue());
|
||||
$cmd
|
||||
->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);
|
||||
|
||||
$redirect = $this->getElement('redirect')->getValue();
|
||||
|
|
Loading…
Reference in New Issue