= t('Remove a custom filter') ?>
++ = t('Do you really want to remove this custom filter: "%s"?', $filter['name']) ?> +
+ +diff --git a/app/Controller/Customfilter.php b/app/Controller/Customfilter.php index da7eb77b2..41da0b116 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 * diff --git a/app/Template/custom_filter/index.php b/app/Template/custom_filter/index.php index 2994ae251..28b6a878a 100644 --- a/app/Template/custom_filter/index.php +++ b/app/Template/custom_filter/index.php @@ -36,7 +36,7 @@
+ = t('Do you really want to remove this custom filter: "%s"?', $filter['name']) ?> +
+ +