From a2137794599bcf51140c1a289dee3fcd399fdfd1 Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Thu, 2 Mar 2017 17:09:58 +0100 Subject: [PATCH] fix size --- modules/labelgenerate/models/generatebarcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/labelgenerate/models/generatebarcode.php b/modules/labelgenerate/models/generatebarcode.php index a77426dd..795de8cd 100644 --- a/modules/labelgenerate/models/generatebarcode.php +++ b/modules/labelgenerate/models/generatebarcode.php @@ -130,7 +130,7 @@ class GenerateBarcode { for ($i=1; $i <= $quantity; $i++) { $this->products[] = array( 'key' => ($id_product.'-'.$id_product_attribute), - 'label' => ($name_combination . ' ' . $p['name']), + 'label' => substr(($name_combination . ' ' . $p['name']),0,28), 'ref' => $ref, 'decli' => substr($name_combination,0,-1) );