Merge pull request #22388 from tiaris/14.0-FIX22386
FIX #22386 IBAN not mandatory for International Export Countries
This commit is contained in:
commit
fbab599a4d
@ -138,6 +138,7 @@ if (empty($reshook)) {
|
|||||||
$action = 'edit';
|
$action = 'edit';
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
$companybankaccount->fetch($id);
|
||||||
if ($companybankaccount->needIBAN() == 1) {
|
if ($companybankaccount->needIBAN() == 1) {
|
||||||
if (!GETPOST('iban')) {
|
if (!GETPOST('iban')) {
|
||||||
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("IBAN")), null, 'errors');
|
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("IBAN")), null, 'errors');
|
||||||
@ -151,7 +152,6 @@ if (empty($reshook)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$companybankaccount->fetch($id);
|
|
||||||
if (!$error) {
|
if (!$error) {
|
||||||
$companybankaccount->socid = $object->id;
|
$companybankaccount->socid = $object->id;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user