// Fixed getAddressIdBySupplierId() : missing where condition
This commit is contained in:
1 parent
fbec8b2d25
commit
9fc76e60e8
1 file changed
+1
@@ -354,6 +354,7 @@ class AddressCore extends ObjectModel
|
|||||||
$query->select('id_address');
|
$query->select('id_address');
|
||||||
$query->from('address');
|
$query->from('address');
|
||||||
$query->where('id_supplier = '.(int)$id_supplier);
|
$query->where('id_supplier = '.(int)$id_supplier);
|
||||||
|
$query->where('deleted = 0');
|
||||||
return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query);
|
return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user