[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.7-368-g6bb3395

Kevin Falcone falcone at bestpractical.com
Mon May 3 13:41:07 EDT 2010


The branch, 3.8-trunk has been updated
       via  6bb3395484c8d8a3aca05d746d341261d147c3dd (commit)
      from  a4e84d4dd36f52b80587cc141bc6c855ec0fe6f6 (commit)

Summary of changes:
 etc/RT_Config.pm.in             |   13 +++++++++++++
 lib/RT/Config.pm                |   14 ++++++++++++++
 share/html/Ticket/Elements/Tabs |    4 +++-
 3 files changed, 30 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 6bb3395484c8d8a3aca05d746d341261d147c3dd
Author: Matt Zagrabelny <mzagrabe at d.umn.edu>
Date:   Mon Apr 26 11:26:03 2010 -0500

    Add a user preference for Update Type on Resolve
    
    Users can now choose either Comment or Reply to be the default Update
    Type when they are resolving tickets.

diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 9bd809a..fd688cd 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -1282,6 +1282,19 @@ search results in RT. Choose from [0, 120, 300, 600, 1200, 3600, 7200].
 
 Set($SearchResultsRefreshInterval, 0);
 
+=item C<$ResolveDefaultUpdateType>
+
+Set the default Update Type when clicking the Resolve link in the Ticket
+links tab.
+
+  Comment            Comments (Not sent to requestors)
+  Respond            Reply to requestors
+
+=cut
+
+Set($ResolveDefaultUpdateType, 'Comment');
+
+
 =item C<$OldestTransactionsFirst>
 
 By default, RT shows newest transactions at the bottom of the ticket
diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm
index f8d121c..6134716 100644
--- a/lib/RT/Config.pm
+++ b/lib/RT/Config.pm
@@ -231,6 +231,20 @@ our %META = (
             },  
         },  
     },
+    ResolveDefaultUpdateType => {
+        Section         => 'General',                                      #loc
+        Overridable     => 1,
+        SortOrder       => 9,
+        Widget          => '/Widgets/Form/Select',
+        WidgetArguments => {
+            Description => 'Default Update Type when Resolving',           #loc
+            Values      => [qw(Comment Respond)],
+            ValuesLabel => {
+                Comment => "Comments (Not sent to requestors)",            #loc
+                Respond => "Reply to requestors",                          #loc
+            },
+        },
+    },
 
     # User overridable options for RT at a glance
     DefaultSummaryRows => {
diff --git a/share/html/Ticket/Elements/Tabs b/share/html/Ticket/Elements/Tabs
index a9e697a..0414359 100755
--- a/share/html/Ticket/Elements/Tabs
+++ b/share/html/Ticket/Elements/Tabs
@@ -189,7 +189,9 @@ if ($Ticket) {
         if ( $Ticket->Status ne 'resolved' ) {
             $actions->{'G'} = {
                 path =>
-                    "Ticket/Update.html?Action=Comment&DefaultStatus=resolved&id="
+                    "Ticket/Update.html?Action="
+                    . RT->Config->Get('ResolveDefaultUpdateType', $session{'CurrentUser'})
+                    . "&DefaultStatus=resolved&id="
                     . $id,
                 title => loc('Resolve')
             };

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


More information about the Rt-commit mailing list