[*] 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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user