From d8de3914a4559f3ff34cfdec08d3a310ae77d3b0 Mon Sep 17 00:00:00 2001 From: Maryse Simard Date: Thu, 16 Jan 2020 09:19:39 -0500 Subject: [PATCH] Bug 7468: fix the export labels popup header When exporting a barcode range, the export popup should display "1 batch to export" instead of "0 batches to export". In this context, it can be considered a label batch and should be counted as such. To test: When clicking the "Print range" button, the popup should show "1 batch to export". Signed-off-by: David Nind --- labels/label-print.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labels/label-print.pl b/labels/label-print.pl index 310546ff5d..2ef72ed572 100755 --- a/labels/label-print.pl +++ b/labels/label-print.pl @@ -60,7 +60,7 @@ my $layouts = undef; my $templates = undef; my $output_formats = undef; my @batches = (); -my $multi_batch_count = scalar(@batch_ids); +my $multi_batch_count = scalar(@batch_ids) || ($from && $to) ? 1 : 0; my $label_count = scalar(@label_ids); my $item_count = scalar(@item_numbers); -- 2.11.0