//small fix

This commit is contained in:
Vincent Augagneur
2013-08-20 11:46:58 +02:00
parent 258d381083
commit f71d4a63cf
+1 -1
View File
@@ -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);