// Fixed getAddressIdBySupplierId() : missing where condition
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14283 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
dae2957d33
commit
20c0c1fd51
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