Add name to the delete downtime command form

refs #11398
This commit is contained in:
Eric Lippmann 2016-08-31 13:02:16 +02:00
parent 59dceb4729
commit 69db59a38e

View File

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