From c95bdfa581afb855b23619329d0deedc03fcec53 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 1 Apr 2007 03:44:04 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Libell=E9=20soci=E9t=E9=20trop=20long=20?= =?UTF-8?q?tronqu=E9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/index.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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);