[-] BO : Fix bug #PSCFV-9323 supplier_reference can be unset
This commit is contained in:
1 parent
c75cda2429
commit
31f421153d
1 file changed
+1
-1
@@ -1389,7 +1389,7 @@ class AdminImportControllerCore extends AdminController
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Product supplier
|
// Product supplier
|
||||||
if (isset($product->id_supplier) && isset($product->supplier_reference))
|
if (isset($product->id_supplier) && property_exists($product, 'supplier_reference'))
|
||||||
{
|
{
|
||||||
$id_product_supplier = ProductSupplier::getIdByProductAndSupplier((int)$product->id, 0, (int)$product->id_supplier);
|
$id_product_supplier = ProductSupplier::getIdByProductAndSupplier((int)$product->id, 0, (int)$product->id_supplier);
|
||||||
if ($id_product_supplier)
|
if ($id_product_supplier)
|
||||||
|
|||||||
Reference in new issue
Block a user