Fix: Bad detection of country

This commit is contained in:
Laurent Destailleur 2011-01-19 16:50:24 +00:00
parent 16eac586de
commit 8ddaff1897

View File

@ -95,7 +95,8 @@ $head=societe_prepare_head2($soc);
dol_fiche_head($head, 'rib', $langs->trans("ThirdParty"),0,'company');
$account = new CompanyBankAccount($db);
$account->socid=$soc->id;
$account->fetch(0,$soc->id);
if (empty($account->socid)) $account->socid=$soc->id;