RT# 73490 - added global configuration to check if RT activity alert should be displayed.
authorChristopher Burger <burgerc@freeside.biz>
Mon, 31 Jul 2017 13:24:50 +0000 (09:24 -0400)
committerChristopher Burger <burgerc@freeside.biz>
Mon, 31 Jul 2017 13:24:50 +0000 (09:24 -0400)
FS/FS/Conf.pm
httemplate/elements/notify-tickets.html

index d41cc74..a0b9a9c 100644 (file)
@@ -5305,6 +5305,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.',
index 35917c3..b545063 100644 (file)
 <%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';