[Rt-commit] r2358 - in rt/branches/PLATANO-EXPERIMENTAL: . html/Admin/Elements

jesse at bestpractical.com jesse at bestpractical.com
Mon Mar 14 02:30:15 EST 2005


Author: jesse
Date: Mon Mar 14 02:30:14 2005
New Revision: 2358

Modified:
   rt/branches/PLATANO-EXPERIMENTAL/   (props changed)
   rt/branches/PLATANO-EXPERIMENTAL/html/Admin/Elements/SelectStage
Log:
 r8461 at hualien:  jesse | 2005-03-14 02:25:05 -0500
  r4103 at hualien:  jesse | 2005-02-07 12:21:04 -0500
  RT-Ticket: 6417
  RT-Status: resolved
  RT-Update: correspond
  
  Only show the TransactionBatch scrip stage if TransactionBatch
  scrips are enabled.  --Dave Rolsky
  
 


Modified: rt/branches/PLATANO-EXPERIMENTAL/html/Admin/Elements/SelectStage
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL/html/Admin/Elements/SelectStage	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL/html/Admin/Elements/SelectStage	Mon Mar 14 02:30:14 2005
@@ -44,7 +44,7 @@
 %# 
 %# END BPS TAGGED BLOCK }}}
 <SELECT NAME=<%$Name%>>
-% foreach my $stage (qw(TransactionCreate TransactionBatch Disabled)) {
+% foreach my $stage (@stages) {
 <OPTION VALUE=<%$stage%>
 <% ($stage eq $Default) && 'SELECTED' %>
 ><% loc($stage) %>
@@ -54,6 +54,9 @@
 if ($Default eq '') {
     $Default = 'TransactionCreate';
 }
+my @stages = 'TransactionCreate';
+push @stages, 'TransactionBatch' if $RT::UseTransactionBatch;
+push @stages, 'Disabled';
 </%INIT>
 <%ARGS>
 $Default => 'TransactionCreate'


More information about the Rt-commit mailing list