[-] BO : Bug Fixed #PSCFV-3125 - Fields already filled when creating a new supplier

This commit is contained in:
fBrignoli
2012-07-24 12:01:59 +00:00
parent 9e82a18799
commit e99d80b16a
@@ -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)