[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-228-gf2332fa
Shawn Moore
sartak at bestpractical.com
Thu Dec 16 15:55:11 EST 2010
The branch, 3.8-trunk has been updated
via f2332fafe055be11c7f07a58b60607a6a9e85435 (commit)
from 30a71f4dc7b0784e8a1ace43d2f28f0e2056c0a1 (commit)
Summary of changes:
etc/RT_Config.pm.in | 10 ++++++++++
lib/RT/Config.pm | 9 +++++++++
share/html/Ticket/Update.html | 6 ++++--
3 files changed, 23 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit f2332fafe055be11c7f07a58b60607a6a9e85435
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Thu Dec 16 15:48:09 2010 -0500
SuppressAutoOpenOnUpdate
Cleaned up patch from Matt Zagrabelny <mzagrabe at d.umn.edu>
diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index bf88790..ea64a2e 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -1299,6 +1299,16 @@ links tab.
Set($ResolveDefaultUpdateType, 'Comment');
+=item C<$SuppressAutoOpenOnUpdate>
+
+When users click Comment or Reply on a new ticket in the web UI, the default
+status for the ticket gets set to 'open' if the status is currently 'new'.
+Setting this option to 1 will suppress that behavior and leave the default
+status as 'new'. This option can be overridden by users in their preferences.
+
+=cut
+
+Set($SuppressAutoOpenOnUpdate, 0);
=item C<$OldestTransactionsFirst>
diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm
index be14269..bc23b03 100644
--- a/lib/RT/Config.pm
+++ b/lib/RT/Config.pm
@@ -245,6 +245,15 @@ our %META = (
},
},
},
+ SuppressAutoOpenOnUpdate => {
+ Section => 'General',
+ Overridable => 1,
+ SortOrder => 10,
+ Widget => '/Widgets/Form/Boolean',
+ WidgetArguments => {
+ Description => 'Suppress automatic new to open status change on ticket update' # loc
+ }
+ },
# User overridable options for RT at a glance
DefaultSummaryRows => {
diff --git a/share/html/Ticket/Update.html b/share/html/Ticket/Update.html
index c669c48..0e1b8d4 100755
--- a/share/html/Ticket/Update.html
+++ b/share/html/Ticket/Update.html
@@ -174,8 +174,10 @@ unless($DefaultStatus){
$DefaultStatus=($ARGS{'Status'} ||$TicketObj->Status());
}
-if ($DefaultStatus eq 'new'){
- $DefaultStatus='open';
+unless (RT->Config->Get('SuppressAutoOpenOnUpdate', $session{'CurrentUser'})) {
+ if ($DefaultStatus eq 'new') {
+ $DefaultStatus = 'open';
+ }
}
if ($DefaultStatus eq 'resolved') {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list