[-] BO : Bug Fixed #PSCFV-3125 - Fields already filled when creating a new supplier
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16545 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -215,11 +215,13 @@ class AdminSuppliersControllerCore extends AdminController
|
|||||||
|
|
||||||
// loads current address for this supplier - if possible
|
// loads current address for this supplier - if possible
|
||||||
$address = null;
|
$address = null;
|
||||||
|
if (isset($obj->id))
|
||||||
|
{
|
||||||
|
$id_address = Address::getAddressIdBySupplierId($obj->id);
|
||||||
|
|
||||||
$id_address = Address::getAddressIdBySupplierId($obj->id);
|
if ($id_address > 0)
|
||||||
|
$address = new Address((int)$id_address);
|
||||||
if ($id_address > 0)
|
}
|
||||||
$address = new Address((int)$id_address);
|
|
||||||
|
|
||||||
// force specific fields values (address)
|
// force specific fields values (address)
|
||||||
if ($address != null)
|
if ($address != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user