From 71dc812ae679b7940e70aa85990667c217a6a510 Mon Sep 17 00:00:00 2001 From: Nick Blackledge Date: Sat, 13 Feb 2016 22:06:23 +1100 Subject: Fixed issue with customer filter popover and added confirmation for removal --- app/Controller/Customfilter.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'app/Controller/Customfilter.php') diff --git a/app/Controller/Customfilter.php b/app/Controller/Customfilter.php index da7eb77b..41da0b11 100644 --- a/app/Controller/Customfilter.php +++ b/app/Controller/Customfilter.php @@ -56,6 +56,23 @@ class Customfilter extends Base $this->index($values, $errors); } + /** + * Confirmation dialog before removing a custom filter + * + * @access public + */ + public function confirm() + { + $project = $this->getProject(); + $filter = $this->customFilter->getById($this->request->getIntegerParam('filter_id')); + + $this->response->html($this->helper->layout->project('custom_filter/remove', array( + 'project' => $project, + 'filter' => $filter, + 'title' => t('Remove a custom filter') + ))); + } + /** * Remove a custom filter * -- cgit v1.2.3