[*] Bo : #PSTEST-1095 : Remove id_address of the table table supplier and add a new fixture in the installer for the table address

This commit is contained in:
lLefevre
2012-03-27 09:20:01 +00:00
parent e4caa3c6a3
commit ca1aaaed6f
4 changed files with 25 additions and 16 deletions
@@ -214,8 +214,12 @@ class AdminSuppliersControllerCore extends AdminController
// loads current address for this supplier - if possible
$address = null;
if ($obj->id_address > 0)
$address = new Address($obj->id_address);
$id_address = Address::getAddressIdBySupplierId($obj->id);
if ($id_address > 0)
$address = new Address((int)$id_address);
// force specific fields values (address)
if ($address != null)
{