[freeside-commits] branch master updated. 09a43bd0984104796052ceee7fdae0581612535d

Christopher Burger burgerc at 420.am
Mon Jul 31 06:25:39 PDT 2017


The branch, master has been updated
       via  09a43bd0984104796052ceee7fdae0581612535d (commit)
      from  862381171227acfe4a7bf5e1957de991b3928704 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 09a43bd0984104796052ceee7fdae0581612535d
Author: Christopher Burger <burgerc at freeside.biz>
Date:   Mon Jul 31 09:24:50 2017 -0400

    RT# 73490 - added global configuration to check if RT activity alert should be displayed.

diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index d41cc74..a0b9a9c 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -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.',
diff --git a/httemplate/elements/notify-tickets.html b/httemplate/elements/notify-tickets.html
index 35917c3..b545063 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';

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Conf.pm                           |    7 +++++++
 httemplate/elements/notify-tickets.html |    4 ++++
 2 files changed, 11 insertions(+)




More information about the freeside-commits mailing list