correct wrong link

This commit is contained in:
Philippe Grand 2010-12-30 17:07:15 +00:00
parent 2e4fd7d134
commit e426172c47

View File

@ -234,7 +234,7 @@ if ($resql)
// Description
print '<td valign="center"><a href="'.DOL_URL_ROOT.'/compta/bank/ligne.php?rowid='.$objp->rowid.'&amp;account='.$acct->id.'">';
$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]);
else print $objp->label;
print '</a>';
@ -260,7 +260,7 @@ if ($resql)
$newline=0;
}
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 dol_trunc($links[$key]['label'],24);
print '</a>';