Update releve.php

This commit is contained in:
Laurent Destailleur 2024-03-21 14:36:31 +01:00 committed by GitHub
parent 5f1c05308a
commit ea1762f0fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -529,14 +529,10 @@ if (empty($numref)) {
print '<a href="'.DOL_URL_ROOT.'/compta/bank/line.php?rowid='.$objp->rowid.'&account='.$object->id.'">';
$reg = array();
preg_match('/\((.+)\)/i', $objp->label, $reg); // Si texte entoure de parenthese on tente recherche de traduction
if (!empty($reg[1])) {
if ($langs->trans($reg[1]) != $reg[1]) {
print $langs->trans($reg[1]);
} else {
print $objp->label;
}
if (!empty($reg[1]) && $langs->trans($reg[1]) != $reg[1]) {
print $langs->trans($reg[1]);
} else {
print $objp->label;
print dol_escape_htmltag($objp->label);
}
print '</a>';