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 12:26:41 -0400
commitab8fb59e7a48c6487ae36493928a5f7f558a61eb (patch)
tree5eed97d4632f25638e1a9d4e8ff645e91fb88789
parent3b7e4f87515c8137c7f9ef0fcb977e0fecd4d16a (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 77add5d97..967468b39 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -5619,6 +5619,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' => 'billing',
'description' => 'Enable per-package balances.',
diff --git a/httemplate/elements/notify-tickets.html b/httemplate/elements/notify-tickets.html
index 37a4e8456..0c370744b 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';