diff --git a/share/html/Admin/Scrips/Create.html b/share/html/Admin/Scrips/Create.html index a5e4b3de9de..7e1b63bf5a2 100644 --- a/share/html/Admin/Scrips/Create.html +++ b/share/html/Admin/Scrips/Create.html @@ -61,11 +61,11 @@ <& /Admin/Elements/SelectStage, Default => $ARGS{"Stage"} &> - - <&| /Elements/LabeledValue, Label => '' &>
- /> +% # If $Create is not defined, it means that it's the first time the user +% # sees the form and we should check the box by default. + />
@@ -96,8 +96,6 @@ <%INIT> my @results; -$ARGS{'Enabled'} = 1 unless $ARGS{'SetEnabled'}; - my $queue_obj; if ( $Queue ) { $queue_obj = RT::Queue->new( $session{'CurrentUser'} ); @@ -120,7 +118,7 @@ Queue => $Queue || 0, Stage => $ARGS{"Stage"}, - Disabled => $ARGS{"Disabled"}, + Disabled => $ARGS{"Enabled"} ? 0 : 1, ScripAction => $ARGS{"ScripAction"}, ScripCondition => $ARGS{"ScripCondition"},