From f71d4a63cfc5b29d0beceb11f319f05c38080916 Mon Sep 17 00:00:00 2001 From: Vincent Augagneur Date: Tue, 20 Aug 2013 11:46:58 +0200 Subject: [PATCH] //small fix --- classes/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Product.php b/classes/Product.php index 404dfc4ab..d46ab18c2 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -1354,7 +1354,7 @@ class ProductCore extends ObjectModel $supplier_reference = ''; //Try to set the default supplier reference - if (($id_supplier > 0) && ($id_product > 0)) + if (($id_supplier > 0) && ($this->id > 0)) { $id_product_supplier = (int)ProductSupplier::getIdByProductAndSupplier($this->id, $id_product_attribute, $id_supplier);