[Rt-commit] r12989 - in rt/branches/3.8-TESTING: . etc share/html/Ticket/Elements

jesse at bestpractical.com jesse at bestpractical.com
Fri Jun 6 15:28:48 EDT 2008


Author: jesse
Date: Fri Jun  6 15:28:44 2008
New Revision: 12989

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/etc/RT_Config.pm.in
   rt/branches/3.8-TESTING/lib/RT/Config.pm
   rt/branches/3.8-TESTING/share/html/Ticket/Elements/ShowUpdateStatus

Log:
 r32398 at 31b:  jesse | 2008-06-06 15:27:39 -0400
 * Showing "ticket contains unread messages" is now a preference


Modified: rt/branches/3.8-TESTING/etc/RT_Config.pm.in
==============================================================================
--- rt/branches/3.8-TESTING/etc/RT_Config.pm.in	(original)
+++ rt/branches/3.8-TESTING/etc/RT_Config.pm.in	Fri Jun  6 15:28:44 2008
@@ -580,6 +580,12 @@
 Set($ShowTransactionImages, 1);
 
 
+# By default, RT will prompt users when there are new, unread messages on tickets they are viewing
+# Set ShowUnreadMessageNotifications to a false value to disable this feature.
+
+Set($ShowUnreadMessageNotifications, 1);
+
+
 # $HomepageComponents is an arrayref of allowed components on a user's
 # customized homepage ("RT at a glance").
 

Modified: rt/branches/3.8-TESTING/lib/RT/Config.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/Config.pm	(original)
+++ rt/branches/3.8-TESTING/lib/RT/Config.pm	Fri Jun  6 15:28:44 2008
@@ -158,6 +158,15 @@
             Description => 'Show oldest history first',    #loc
         },
     },
+    ShowUnreadMessageNotifications => { 
+        Section         => 'Ticket display',
+        Overridable     => 1,
+        Widget          => '/Widgets/Form/Boolean',
+        WidgetArguments => {
+            Description => 'Notify me of unread messages',    #loc
+            } 
+
+    },
     DateTimeFormat => {
         Section         => 'Locale',                       #loc
         Overridable     => 1,

Modified: rt/branches/3.8-TESTING/share/html/Ticket/Elements/ShowUpdateStatus
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Ticket/Elements/ShowUpdateStatus	(original)
+++ rt/branches/3.8-TESTING/share/html/Ticket/Elements/ShowUpdateStatus	Fri Jun  6 15:28:44 2008
@@ -59,5 +59,6 @@
 $Ticket
 </%ARGS>
 <%INIT>
+return unless (RT->Config->Get( 'ShowUnreadMessageNotifications', $session{'CurrentUser'}));
 my $txn = $Ticket->SeenUpTo or return;
 </%INIT>


More information about the Rt-commit mailing list