summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-07-31 09:24:50 -0400
committerChristopher Burger <burgerc@freeside.biz>2017-08-16 11:55:10 -0400
commitaf965b6e50e539c74dfede0ced874e2a103d42eb (patch)
treecdcd3db5ea7f84337b2a4cf6ce806234234da2f2
parentc7af3fc8437b825afe29ca3bcbedd7bf41404c4d (diff)
RT# 73490 - added global configuration to check if RT activity alert should be displayed.
-rw-r--r--FS/FS/Conf.pm7
-rw-r--r--httemplate/elements/notify-tickets.html4
2 files changed, 11 insertions, 0 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index b5b5ec89e..3053d78e6 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -5340,6 +5340,13 @@ and customer address. Include units.',
},
{
+ 'key' => 'rt-hide_activity_notification',
+ 'section' => 'ticketing',
+ 'description' => 'Hide the notification box when there is activity on tickets',
+ 'type' => 'checkbox',
+ },
+
+ {
'key' => 'pkg-balances',
'section' => 'packages',
'description' => 'Enable per-package balances.',
diff --git a/httemplate/elements/notify-tickets.html b/httemplate/elements/notify-tickets.html
index 35917c34d..b54506338 100644
--- a/httemplate/elements/notify-tickets.html
+++ b/httemplate/elements/notify-tickets.html
@@ -13,8 +13,12 @@
<%init>
use Class::Load 'load_class';
+use FS::Conf;
+my $conf = new FS::Conf;
+
my $enabled = $FS::TicketSystem::system eq 'RT_Internal';
$enabled = 0 if $FS::CurrentUser::CurrentUser->option('hide_notify_tickets');
+$enabled = 0 if $conf->exists('rt-hide_activity_notification');
my $UnrepliedTickets;
if ($enabled) {
my $class = 'RT::Search::UnrepliedTickets';