[Rt-commit] r2196 - in rt/branches/3.4-RELEASE: .
html/Admin/Elements
jesse at bestpractical.com
jesse at bestpractical.com
Mon Feb 7 12:22:50 EST 2005
Author: jesse
Date: Mon Feb 7 12:22:50 2005
New Revision: 2196
Modified:
rt/branches/3.4-RELEASE/ (props changed)
rt/branches/3.4-RELEASE/html/Admin/Elements/SelectStage
Log:
r4103 at hualien: jesse | 2005-02-07T17:21:04.911429Z
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/3.4-RELEASE/html/Admin/Elements/SelectStage
==============================================================================
--- rt/branches/3.4-RELEASE/html/Admin/Elements/SelectStage (original)
+++ rt/branches/3.4-RELEASE/html/Admin/Elements/SelectStage Mon Feb 7 12:22:50 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