Bug 26340: (QA follow-up) Remove warns and set input fields hidden again
authorKatrin Fischer <katrin.fischer.83@web.de>
Sat, 3 Jul 2021 20:22:35 +0000 (22:22 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Jul 2021 13:47:33 +0000 (15:47 +0200)
Removes traces of debugging.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-print.tt
labels/label-create-pdf.pl
labels/label-print.pl

index 48ebbec..6c15534 100644 (file)
@@ -76,9 +76,9 @@
                 [% FOREACH item_number IN item_numbers %]
                     <input type="hidden" name="item_number" value="[% item_number.item_number | html %]" />
                 [% END %]
-                <input type="text" name="from" value="[% txt_from | html %]" />
-                <input type="text" name="to" value="[% txt_to | html %]" />
-                <input type="text" name="range" value="[% range | html %]" />
+                <input type="hidden" name="from" value="[% txt_from | html %]" />
+                <input type="hidden" name="to" value="[% txt_to | html %]" />
+                <input type="hidden" name="range" value="[% range | html %]" />
                 <fieldset class="rows">
                     <ol>
                         <li>
index 15b8a3f..ecb16a5 100755 (executable)
@@ -47,8 +47,6 @@ my $from = $cgi->param('from') || undef;
 my $to = $cgi->param('to') || undef;
 my $range = $cgi->param('range') || undef;
 
-warn ("range_pdf = " . Data::Dumper::Dumper($range));
-
 my $items = undef;
 
 my $pdf_file = (@label_ids || @item_numbers ? "label_single_" . scalar(@label_ids || @item_numbers) : "label_batch_$batch_id");
index cb92850..1347390 100755 (executable)
@@ -57,8 +57,6 @@ my $from = int($txt_from) || undef;
 my $to = int($txt_to) || undef;
 my $range = length($txt_from) || undef;
 
-warn ("range = " . Data::Dumper::Dumper($range));
-
 my $layouts = undef;
 my $templates = undef;
 my $output_formats = undef;