From 57406245cae51860e1a3ed20273d609c1e4cb456 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 31 Aug 2016 14:05:36 +0200 Subject: [PATCH] Select downtime name in the downtime list view refs #11398 --- .../monitoring/application/controllers/ListController.php | 1 + .../views/scripts/partials/downtime/downtime-header.phtml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index 22630caab..5499cfdf9 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -229,6 +229,7 @@ class ListController extends Controller 'is_fixed' => 'downtime_is_fixed', 'is_in_effect' => 'downtime_is_in_effect', 'entry_time' => 'downtime_entry_time', + 'name' => 'downtime_name', 'host_state', 'service_state', 'host_name', diff --git a/modules/monitoring/application/views/scripts/partials/downtime/downtime-header.phtml b/modules/monitoring/application/views/scripts/partials/downtime/downtime-header.phtml index eb9f26ac3..bfe88a761 100644 --- a/modules/monitoring/application/views/scripts/partials/downtime/downtime-header.phtml +++ b/modules/monitoring/application/views/scripts/partials/downtime/downtime-header.phtml @@ -61,8 +61,9 @@ $deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-action'); $deleteButton->populate( array( - 'downtime_id' => $downtime->id, - 'downtime_is_service' => isset($downtime->service_description) + 'downtime_id' => $downtime->id, + 'downtime_is_service' => isset($downtime->service_description), + 'downtime_name' => $downtime->name ) ); $deleteButton->getElement('btn_submit')