[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-90-g7cfa19b
Shawn Moore
sartak at bestpractical.com
Thu Jun 17 16:30:32 EDT 2010
The branch, 3.9-trunk has been updated
via 7cfa19b2076252e593d9b3adbb2bf978898379fb (commit)
from 708a2ba21ea744bbb16c66cd7ff05664e8e97d0f (commit)
Summary of changes:
etc/RT_Config.pm.in | 9 +++++++++
lib/RT/Config.pm | 25 +++++++++++++++++--------
share/html/Elements/SelectNewTicketQueue | 7 +++++++
share/html/Ticket/Create.html | 1 +
4 files changed, 34 insertions(+), 8 deletions(-)
- Log -----------------------------------------------------------------
commit 7cfa19b2076252e593d9b3adbb2bf978898379fb
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Thu Jun 17 16:21:59 2010 -0400
$RememberDefaultQueue for "sticky" default queue
diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 109f1fb..85d04b5 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -1521,6 +1521,15 @@ queue selection boxes on the web interface.
#Set($DefaultQueue, 'General');
+=item C<$RememberDefaultQueue>
+
+When a queue is selected in the new ticket dropdown, make it the new default
+for the new ticket dropdown.
+
+=cut
+
+#Set($RememberDefaultQueue, 1);
+
=item C<$DefaultTimeUnitsToHours>
Use this to set the default units for time entry to hours instead of minutes.
diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm
index 6134716..9de441f 100644
--- a/lib/RT/Config.pm
+++ b/lib/RT/Config.pm
@@ -151,10 +151,19 @@ our %META = (
},
}
},
+ RememberDefaultQueue => {
+ Section => 'General',
+ Overridable => 1,
+ SortOrder => 2,
+ Widget => '/Widgets/Form/Boolean',
+ WidgetArguments => {
+ Description => 'Remember default queue' # loc
+ }
+ },
UsernameFormat => {
Section => 'General',
Overridable => 1,
- SortOrder => 2,
+ SortOrder => 3,
Widget => '/Widgets/Form/Select',
WidgetArguments => {
Description => 'Username format', # loc
@@ -168,7 +177,7 @@ our %META = (
WebDefaultStylesheet => {
Section => 'General', #loc
Overridable => 1,
- SortOrder => 3,
+ SortOrder => 4,
Widget => '/Widgets/Form/Select',
WidgetArguments => {
Description => 'Theme', #loc
@@ -179,7 +188,7 @@ our %META = (
MessageBoxRichText => {
Section => 'General',
Overridable => 1,
- SortOrder => 4,
+ SortOrder => 5,
Widget => '/Widgets/Form/Boolean',
WidgetArguments => {
Description => 'WYSIWYG message composer' # loc
@@ -188,7 +197,7 @@ our %META = (
MessageBoxRichTextHeight => {
Section => 'General',
Overridable => 1,
- SortOrder => 5,
+ SortOrder => 6,
Widget => '/Widgets/Form/Integer',
WidgetArguments => {
Description => 'WYSIWYG composer height', # loc
@@ -197,7 +206,7 @@ our %META = (
MessageBoxWidth => {
Section => 'General',
Overridable => 1,
- SortOrder => 6,
+ SortOrder => 7,
Widget => '/Widgets/Form/Integer',
WidgetArguments => {
Description => 'Message box width', #loc
@@ -206,7 +215,7 @@ our %META = (
MessageBoxHeight => {
Section => 'General',
Overridable => 1,
- SortOrder => 7,
+ SortOrder => 8,
Widget => '/Widgets/Form/Integer',
WidgetArguments => {
Description => 'Message box height', #loc
@@ -215,7 +224,7 @@ our %META = (
SearchResultsRefreshInterval => {
Section => 'General', #loc
Overridable => 1,
- SortOrder => 8,
+ SortOrder => 9,
Widget => '/Widgets/Form/Select',
WidgetArguments => {
Description => 'Search results refresh interval', #loc
@@ -234,7 +243,7 @@ our %META = (
ResolveDefaultUpdateType => {
Section => 'General', #loc
Overridable => 1,
- SortOrder => 9,
+ SortOrder => 10,
Widget => '/Widgets/Form/Select',
WidgetArguments => {
Description => 'Default Update Type when Resolving', #loc
diff --git a/share/html/Elements/SelectNewTicketQueue b/share/html/Elements/SelectNewTicketQueue
index 403b1f6..949faca 100755
--- a/share/html/Elements/SelectNewTicketQueue
+++ b/share/html/Elements/SelectNewTicketQueue
@@ -50,5 +50,12 @@
</label>
<%INIT>
my $queue = RT->Config->Get("DefaultQueue", $session{'CurrentUser'});
+
+if (RT->Config->Get("RememberDefaultQueue", $session{'CurrentUser'})) {
+ if (my $session_default = $session{'DefaultQueue'}) {
+ $queue = $session_default;
+ }
+}
+
$m->callback(Queue => \$queue, CallbackName => 'DefaultQueue');
</%INIT>
diff --git a/share/html/Ticket/Create.html b/share/html/Ticket/Create.html
index 2c8e357..b46a3b4 100755
--- a/share/html/Ticket/Create.html
+++ b/share/html/Ticket/Create.html
@@ -250,6 +250,7 @@
<%INIT>
$m->callback( CallbackName => "Init", ARGSRef => \%ARGS );
my $Queue = $ARGS{Queue};
+$session{DefaultQueue} = $Queue;
my $CloneTicketObj;
if ($CloneTicket) {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list