summaryrefslogtreecommitdiff
path: root/app/Controller/Customfilter.php
diff options
context:
space:
mode:
authorNick Blackledge <nicholas.blackledge@nttict.com>2016-02-13 22:06:23 +1100
committerNick Blackledge <nicholas.blackledge@nttict.com>2016-02-13 22:06:23 +1100
commit71dc812ae679b7940e70aa85990667c217a6a510 (patch)
tree8f6c7ce2282e212b11e5f53ec34ae513fda73ece /app/Controller/Customfilter.php
parent77ae92b09baacecaad3450ba06f40c8df76a7a19 (diff)
Fixed issue with customer filter popover and added confirmation for removal
Diffstat (limited to 'app/Controller/Customfilter.php')
-rw-r--r--app/Controller/Customfilter.php17
1 files changed, 17 insertions, 0 deletions
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
@@ -57,6 +57,23 @@ class Customfilter extends Base
}
/**
+ * 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
*
* @access public