FIX Warning not visible

This commit is contained in:
Laurent Destailleur 2022-12-28 15:49:03 +01:00
parent 6824f82cc8
commit 4cafa038a2

View File

@ -1480,20 +1480,22 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
print $string; print $string;
print '</td>'; print '</td>';
// IBAN // IBAN
print '<td class="tdoverflowmax100" title="'.dol_escape_htmltag($rib->iban).'">'.dol_escape_htmltag($rib->iban); print '<td class="tdoverflowmax100" title="'.dol_escape_htmltag($rib->iban).'">';
if (!empty($rib->iban)) { if (!empty($rib->iban)) {
if (!checkIbanForAccount($rib)) { if (!checkIbanForAccount($rib)) {
print ' '.img_picto($langs->trans("IbanNotValid"), 'warning'); print img_picto($langs->trans("IbanNotValid"), 'warning').' ';
} }
} }
print dol_escape_htmltag($rib->iban);
print '</td>'; print '</td>';
// BIC // BIC
print '<td>'.$rib->bic; print '<td>';
if (!empty($rib->bic)) { if (!empty($rib->bic)) {
if (!checkSwiftForAccount($rib)) { if (!checkSwiftForAccount($rib)) {
print ' '.img_picto($langs->trans("SwiftNotValid"), 'warning'); print img_picto($langs->trans("SwiftNotValid"), 'warning').' ';
} }
} }
print dol_escape_htmltag($rib->bic);
print '</td>'; print '</td>';
if (!empty($conf->prelevement->enabled)) { if (!empty($conf->prelevement->enabled)) {