[-] 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:
fBrignoli
2012-07-24 12:01:59 +00:00
parent 6a8af608ed
commit 14615f68cf
@@ -215,11 +215,13 @@ class AdminSuppliersControllerCore extends AdminController
// loads current address for this supplier - if possible
$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)
if ($address != null)