From 3502005c09ace8fc56a837e1d80d2d4eef812651 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Fri, 6 Nov 2015 05:13:07 +0000
Subject: [PATCH] bug: Ticket Filter Action - disable autoresponse

Action to disable auto-autoresponse doesn't require  any config check.
---
 include/class.filter_action.php | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/include/class.filter_action.php b/include/class.filter_action.php
index 2e57ba530..98d71d85e 100644
--- a/include/class.filter_action.php
+++ b/include/class.filter_action.php
@@ -220,10 +220,7 @@ class FA_DisableAutoResponse extends TriggerAction {
     function apply(&$ticket, array $info) {
         # TODO: Disable alerting
         # XXX: Does this imply turning it on as well? (via ->sendAlerts())
-        $config = $this->getConfiguration();
-        if ($config['enable']) {
-            $ticket['autorespond']=false;
-        }
+        $ticket['autorespond']=false;
     }
 
     function getConfigurationOptions() {
-- 
GitLab