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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14287 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-03-27 09:20:01 +00:00
parent 0b9ae5fef8
commit 5feafff137
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)
{