@@ -, +, @@ --- tools/batchMod.pl | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) --- a/tools/batchMod.pl +++ a/tools/batchMod.pl @@ -51,6 +51,7 @@ my $template_flag; if (!defined $op) { $template_name = "tools/batchMod.tmpl"; $template_flag = { tools => '*' }; + $op = q{}; } else { $template_name = ($del) ? "tools/batchMod-del.tmpl" : "tools/batchMod-edit.tmpl"; $template_flag = ($del) ? { tools => 'items_batchdel' } : { tools => 'items_batchmod' }; @@ -432,8 +433,8 @@ foreach my $tag (sort keys %{$tagslib}) { $template->param(%$items_display_hashref) if $items_display_hashref; $template->param( op => $nextop, - $op => 1, ); +$template->param( $op => 1 ) if $op; if ($op eq "action") { @@ -449,7 +450,7 @@ if ($op eq "action") { } foreach my $error (@errors) { - $template->param($error => 1); + $template->param($error => 1) if $error; } output_html_with_http_headers $input, $cookie, $template->output; exit; --