Fix: Bad link

This commit is contained in:
Laurent Destailleur 2009-01-20 00:35:09 +00:00
parent 6646901072
commit 83d9bdc382

View File

@ -912,7 +912,7 @@ else
{ {
$societe = new Societe($db); $societe = new Societe($db);
$societe->fetch($fuser->societe_id); $societe->fetch($fuser->societe_id);
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$fuser->societe_id.'">'.img_object($langs->trans("ShowCompany"),'company').' '.dolibarr_trunc($societe->nom,32).'</a>'; print $societe->getNomUrl(1,'');
} }
else else
{ {
@ -1317,7 +1317,7 @@ else
{ {
$societe = new Societe($db); $societe = new Societe($db);
$societe->fetch($fuser->societe_id); $societe->fetch($fuser->societe_id);
print '<a href="'.DOL_URL_ROOT.'/soc.php?id='.$fuser->societe_id.'">'.img_object($langs->trans("ShowCompany"),'company').' '.dolibarr_trunc($societe->nom,32).'</a>'; print $societe->getNomUrl(1,'');
if ($fuser->contact_id) if ($fuser->contact_id)
{ {
$contact = new Contact($db); $contact = new Contact($db);