From b45e43b3c52d1f95ad82dc5d37dc5f9d6a370d8a 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 Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- 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.39.5