FIX #22386 IBAN not mandatory for International Export Countries
This commit is contained in:
parent
94328771f9
commit
9d01e07db9
@ -125,6 +125,7 @@ if (empty($reshook)) {
|
||||
$action = 'edit';
|
||||
$error++;
|
||||
}
|
||||
$companybankaccount->fetch($id);
|
||||
if ($companybankaccount->needIBAN() == 1) {
|
||||
if (!GETPOST('iban')) {
|
||||
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("IBAN")), null, 'errors');
|
||||
@ -138,7 +139,6 @@ if (empty($reshook)) {
|
||||
}
|
||||
}
|
||||
|
||||
$companybankaccount->fetch($id);
|
||||
if (!$error) {
|
||||
$companybankaccount->socid = $object->id;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user