// Fixed supplier addresses
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14295 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -355,6 +355,9 @@ class AddressCore extends ObjectModel
|
||||
$query->from('address');
|
||||
$query->where('id_supplier = '.(int)$id_supplier);
|
||||
$query->where('deleted = 0');
|
||||
$query->where('id_customer = 0');
|
||||
$query->where('id_manufacturer = 0');
|
||||
$query->where('id_warehouse = 0');
|
||||
return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user