Update releve.php
This commit is contained in:
parent
5f1c05308a
commit
ea1762f0fd
1 changed files with 3 additions and 7 deletions
|
|
@ -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>';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue