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

sartak at bestpractical.com sartak at bestpractical.com
Wed Jun 11 14:18:45 EDT 2008


Author: sartak
Date: Wed Jun 11 14:18:42 2008
New Revision: 13176

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:
 r62223 at onn:  sartak | 2008-06-11 14:15:26 -0400
 Add a global DefaultQueue option, let SelectQueue's default act as ID or name


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	Wed Jun 11 14:18:42 2008
@@ -1086,6 +1086,16 @@
 
 Set(@Active_MakeClicky, qw());
 
+=item C<$DefaultQueue>
+
+Use this to select the default queue name that will be used for creating new
+tickets. You may use either the queue's name or its ID. This only affects the
+queue selection boxes on the web interface.
+
+=cut
+
+#Set($DefaultQueue, '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	Wed Jun 11 14:18:42 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||'') || $queue->{Name} eq ($Default||'')) {
+ selected="selected"
+% }
+
+>
     <%$queue->{Name}%>
+
 %             if ($Verbose and $queue->{Description}) {
     (<%$queue->{Description}%>)
 %             }


More information about the Rt-commit mailing list