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; }