From 89c2c01a2bef78cd44cc9e30d70ce04746d29c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Fri, 4 Sep 2015 09:50:07 +0200 Subject: [PATCH] Bug 14781 - Creation of barcode types 2of5 not functional This patch fixes the rendering of "COOP2of5" or "Industrial2of5" barcodes in the label creator module. To test: - Create a label layout with COOP2of5 barcode type - Create labels (make sure that the items's barcode values are numeric only!) - Export batch and download PDF. Without patch: - No barcodes rendered With patch - Barcodes should render as expected. Test for both barcode types. --- C4/Labels/Label.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Labels/Label.pm b/C4/Labels/Label.pm index 271c6bc..ef19fd5 100644 --- a/C4/Labels/Label.pm +++ b/C4/Labels/Label.pm @@ -536,7 +536,7 @@ sub barcode { PDF::Reuse::Barcode::COOP2of5( x => $params{'llx'}, y => $params{'lly'}, - value => "*$params{barcode_data}*", + value => $params{barcode_data}, xSize => $x_scale_factor, ySize => $params{'y_scale_factor'}, mode => 'graphic', @@ -554,7 +554,7 @@ sub barcode { PDF::Reuse::Barcode::Industrial2of5( x => $params{'llx'}, y => $params{'lly'}, - value => "*$params{barcode_data}*", + value => $params{barcode_data}, xSize => $x_scale_factor, ySize => $params{'y_scale_factor'}, mode => 'graphic', -- 1.7.10.4