From c007513fc825040704cd19bbdd35f329e1f14999 Mon Sep 17 00:00:00 2001 From: jekkos Date: Sun, 13 Dec 2015 15:57:03 +0100 Subject: [PATCH] Fix barcode generation error for empty item numbers --- application/controllers/items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/items.php b/application/controllers/items.php index deb365268..98424e4c3 100644 --- a/application/controllers/items.php +++ b/application/controllers/items.php @@ -345,7 +345,7 @@ class Items extends Secure_area implements iData_controller if ($item['item_number'] == '' || $item['item_number'] == null) { // get the newly generated barcode - $item['item_number'] = $this->barcode_lib->get_barcode($item, $config); + $item['item_number'] = $this->barcode_lib->get_new_barcode($item, $config); // remove from item any suppliers table info to avoid save failure because of unknown fields // WARNING: if suppliers table is changed this list needs to be upgraded, which makes the matter a bit tricky to maintain