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
1 changed files with 11 additions and 2 deletions

View File

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