From e98d8c8be24397ccfc5a551c3477297cfbb6462a Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Mon, 23 Oct 2017 13:48:12 -0500 Subject: [PATCH] issue: Disable Canned Responses On New Ticket This addresses issue 3971 where disabling the Canned Response feature does not disable the Canned Responses dropdown on the New Ticket page for Agents. This adds a check to see if the Canned Response feature is enabled. If so the dropdown will appear. If not the dropdown will not appear. --- include/staff/ticket-open.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/staff/ticket-open.inc.php b/include/staff/ticket-open.inc.php index 6d383e580..80afdc82f 100644 --- a/include/staff/ticket-open.inc.php +++ b/include/staff/ticket-open.inc.php @@ -300,7 +300,7 @@ if ($_POST) <tr> <td colspan=2> <?php - if(($cannedResponses=Canned::getCannedResponses())) { + if($cfg->isCannedResponseEnabled() && ($cannedResponses=Canned::getCannedResponses())) { ?> <div style="margin-top:0.3em;margin-bottom:0.5em"> <?php echo __('Canned Response');?>: -- GitLab