From 8ddaff1897d4fb6cdf2140bfdcac5d80eb5dc240 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 19 Jan 2011 16:50:24 +0000 Subject: [PATCH] Fix: Bad detection of country --- htdocs/societe/rib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/societe/rib.php b/htdocs/societe/rib.php index 8218838ab67..8b8f5c50292 100644 --- a/htdocs/societe/rib.php +++ b/htdocs/societe/rib.php @@ -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;