diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php
index 46088ab0484..917955f5dfc 100644
--- a/htdocs/comm/index.php
+++ b/htdocs/comm/index.php
@@ -324,7 +324,7 @@ if ($resql)
$customerstatic->id=$obj->idp;
$customerstatic->nom=$obj->sname;
$customerstatic->client=$obj->client;
- print '
'.$customerstatic->getNomUrl(1,'').' | ';
+ print ''.$customerstatic->getNomUrl(1,'',16).' | ';
// Date
print ''.dolibarr_print_date($obj->dp).' ';
@@ -357,7 +357,9 @@ else
* Dernières actions commerciales effectuées
*/
-$sql = "SELECT a.id, a.percent, ".$db->pdate("a.datea")." as da, c.code, c.libelle, a.fk_user_author, s.nom as sname, s.idp";
+$sql = "SELECT a.id, a.percent, ".$db->pdate("a.datea")." as da, a.fk_user_author,";
+$sql.= " c.code, c.libelle,";
+$sql.= " s.idp, s.nom as sname, s.client";
if (!$user->rights->commercial->client->voir && !$socid) $sql .= ", sc.fk_soc, sc.fk_user";
$sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as a, ".MAIN_DB_PREFIX."c_actioncomm as c, ".MAIN_DB_PREFIX."societe as s";
if (!$user->rights->commercial->client->voir && !$socid) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
@@ -397,7 +399,10 @@ if ($resql)
print $libelle;
print ' | ';
- print ''.img_object($langs->trans("ShowCustomer"),"company").' '.$obj->sname.' | ';
+ $customerstatic->id=$obj->idp;
+ $customerstatic->nom=$obj->sname;
+ $customerstatic->client=$obj->client;
+ print ''.$customerstatic->getNomUrl(1,'',24).' | ';
// Date
print ''.dolibarr_print_date($obj->da);
|