From 69db59a38eb613a622ef0dae065f63bf64c2cc9e Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 31 Aug 2016 13:02:16 +0200 Subject: [PATCH] Add name to the delete downtime command form refs #11398 --- .../Command/Object/DeleteDowntimeCommandForm.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/application/forms/Command/Object/DeleteDowntimeCommandForm.php b/modules/monitoring/application/forms/Command/Object/DeleteDowntimeCommandForm.php index 15c0e8ebd..be2109eec 100644 --- a/modules/monitoring/application/forms/Command/Object/DeleteDowntimeCommandForm.php +++ b/modules/monitoring/application/forms/Command/Object/DeleteDowntimeCommandForm.php @@ -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();