From 2f69841c95869c26d4413186dd0078e3a98dc461 Mon Sep 17 00:00:00 2001 From: Jevinson Lim Date: Wed, 29 Sep 2021 17:13:31 +0800 Subject: [PATCH] Update Items.php Fixes the problem where 'Supplier ID' is not saved during csv import. --- 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 c95530686..fc216d1e6 100644 --- a/application/controllers/Items.php +++ b/application/controllers/Items.php @@ -886,7 +886,7 @@ class Items extends Secure_Controller 'hsn_code' => $row['HSN'], 'pic_filename' => $row['Image']); - if(!empty($row['supplier_id'])) + if(!empty($row['Supplier ID'])) { $item_data['supplier_id'] = $this->Supplier->exists($row['Supplier ID']) ? $row['Supplier ID'] : NULL; }