[Rt-commit] r13079 - in rt/branches/3.8-TESTING: .

sartak at bestpractical.com sartak at bestpractical.com
Mon Jun 9 17:04:33 EDT 2008


Author: sartak
Date: Mon Jun  9 17:04:33 2008
New Revision: 13079

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/share/html/Admin/Elements/SelectStage

Log:
 r61897 at onn:  sartak | 2008-06-09 17:03:42 -0400
 Display TransactionBatch (DISABLED) in the scrip editor even if UseTransactionBatch is disabled.


Modified: rt/branches/3.8-TESTING/share/html/Admin/Elements/SelectStage
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Admin/Elements/SelectStage	(original)
+++ rt/branches/3.8-TESTING/share/html/Admin/Elements/SelectStage	Mon Jun  9 17:04:33 2008
@@ -47,17 +47,26 @@
 %# END BPS TAGGED BLOCK }}}
 <select name="<%$Name%>">
 % foreach my $stage (@stages) {
-<option value="<%$stage%>"
-<% ($stage eq $Default) && qq[ selected="selected"] |n %>
-><% loc($stage) %>
+
+%# allow [stage, display] in place of a scalar stage name
+% my ($value, $display) = ref($stage) ? @$stage : ($stage, $stage);
+
+<option value="<%$value%>"
+<% ($value eq $Default) && qq[ selected="selected"] |n %>
+><% loc($display) %>
 </option>
+
 % }
 <%INIT>
 if ( !defined $Default || $Default eq '') {
     $Default = 'TransactionCreate';
 }
 my @stages = 'TransactionCreate';
-push @stages, 'TransactionBatch' if RT->Config->Get('UseTransactionBatch');
+
+push @stages, RT->Config->Get('UseTransactionBatch')
+            ? 'TransactionBatch'
+            : ['TransactionBatch', 'TransactionBatch (DISABLED)'];
+
 push @stages, 'Disabled';
 </%INIT>
 <%ARGS>


More information about the Rt-commit mailing list