use getnomUrl of society instead 'handmade' url;
This commit is contained in:
parent
72e149e1a6
commit
197c891fa4
@ -702,13 +702,12 @@ if ($result)
|
|||||||
print '<td>';
|
print '<td>';
|
||||||
if ($obj->socid)
|
if ($obj->socid)
|
||||||
{
|
{
|
||||||
print '<a href="'.DOL_URL_ROOT.'/comm/card.php?socid='.$obj->socid.'">';
|
$objsoc = new Societe($db);
|
||||||
print img_object($langs->trans("ShowCompany"),"company").' '.dol_trunc($obj->name,20).'</a>';
|
$objsoc->fetch($obj->socid);
|
||||||
|
print $objsoc->getNomUrl(1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
print ' ';
|
print ' ';
|
||||||
}
|
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user