correct wrong link
This commit is contained in:
parent
2e4fd7d134
commit
e426172c47
@ -234,7 +234,7 @@ if ($resql)
|
|||||||
// Description
|
// Description
|
||||||
print '<td valign="center"><a href="'.DOL_URL_ROOT.'/compta/bank/ligne.php?rowid='.$objp->rowid.'&account='.$acct->id.'">';
|
print '<td valign="center"><a href="'.DOL_URL_ROOT.'/compta/bank/ligne.php?rowid='.$objp->rowid.'&account='.$acct->id.'">';
|
||||||
$reg=array();
|
$reg=array();
|
||||||
preg_match('/\((.+)\)/i',$objp->label,$reg); // Si texte entoure de parenthee on tente recherche de traduction
|
preg_match('/\((.+)\)/i',$objp->label,$reg); // Si texte entoure de parentheses on tente recherche de traduction
|
||||||
if ($reg[1] && $langs->trans($reg[1])!=$reg[1]) print $langs->trans($reg[1]);
|
if ($reg[1] && $langs->trans($reg[1])!=$reg[1]) print $langs->trans($reg[1]);
|
||||||
else print $objp->label;
|
else print $objp->label;
|
||||||
print '</a>';
|
print '</a>';
|
||||||
@ -260,7 +260,7 @@ if ($resql)
|
|||||||
$newline=0;
|
$newline=0;
|
||||||
}
|
}
|
||||||
elseif ($links[$key]['type']=='company') {
|
elseif ($links[$key]['type']=='company') {
|
||||||
print '<a href="'.$links[$key]['url'].$links[$key]['url_id'].'">';
|
print '<a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$links[$key]['url_id'].'">';
|
||||||
print img_object($langs->trans('ShowCustomer'),'company').' ';
|
print img_object($langs->trans('ShowCustomer'),'company').' ';
|
||||||
print dol_trunc($links[$key]['label'],24);
|
print dol_trunc($links[$key]['label'],24);
|
||||||
print '</a>';
|
print '</a>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user