[Rt-commit] r13152 - in rt/branches/3.8-TESTING: etc share/html/Elements
sartak at bestpractical.com
sartak at bestpractical.com
Tue Jun 10 21:14:18 EDT 2008
Author: sartak
Date: Tue Jun 10 21:14:17 2008
New Revision: 13152
Modified:
rt/branches/3.8-TESTING/ (props changed)
rt/branches/3.8-TESTING/etc/RT_Config.pm.in
rt/branches/3.8-TESTING/share/html/Elements/SelectQueue
Log:
r62162 at onn: sartak | 2008-06-10 21:14:03 -0400
Add a DefaultQueueName config. Resolves 5-year-old ticket rt3.fsck.com #3215.
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 Tue Jun 10 21:14:17 2008
@@ -1086,6 +1086,15 @@
Set(@Active_MakeClicky, qw());
+=item C<$DefaultQueueName>
+
+Use this to select the default queue name that will be used for creating new
+tickets. This only affects the queue selection boxes on the web interface.
+
+=cut
+
+#Set($DefaultQueueName, 'General');
+
=back
=head1 L<Net::Server> (rt-server) Configuration
Modified: rt/branches/3.8-TESTING/share/html/Elements/SelectQueue
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Elements/SelectQueue (original)
+++ rt/branches/3.8-TESTING/share/html/Elements/SelectQueue Tue Jun 10 21:14:17 2008
@@ -57,8 +57,14 @@
% }
% for my $queue (@{$session{$cache_key}}) {
<option value="<% ($NamedValues ? $queue->{Name} : $queue->{Id}) %>"
- <% ( $queue->{Id} eq ($Default||'') ? 'selected="selected"' : '') |n %>>
+
+% if ($queue->{Id} eq ($Default||'') || (!$Default && $queue->{Name} eq (RT->Config->Get('DefaultQueueName')||''))) {
+ selected="selected"
+% }
+
+>
<%$queue->{Name}%>
+
% if ($Verbose and $queue->{Description}) {
(<%$queue->{Description}%>)
% }
More information about the Rt-commit
mailing list