diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php
index ca4f0e82305..660092e8b4b 100644
--- a/htdocs/comm/action/index.php
+++ b/htdocs/comm/action/index.php
@@ -154,29 +154,20 @@ if ($resql)
print $libelle;
print '';
+ // Société
print '
';
+ if ($obj->client == 1) $url=DOL_URL_ROOT.'/comm/fiche.php?socid=';
+ elseif ($obj->client == 2) $url=DOL_URL_ROOT.'/comm/prospect/fiche.php?id=';
+ else $url=DOL_URL_ROOT.'/soc.php?socid=';
+ print ' '.img_object($langs->trans("ShowCompany"),"company").' '.dolibarr_trunc($obj->societe,32).' | ';
- if ($obj->client == 1)
- {
- print ' '.img_object($langs->trans("ShowCompany"),"company").' '.$obj->societe.'';
- }
- elseif ($obj->client == 2)
- {
- print ' '.img_object($langs->trans("ShowCompany"),"company").' '.$obj->societe.'';
- }
- else
- {
- print ' '.img_object($langs->trans("ShowCompany"),"company").' '.$obj->societe.'';
- }
- /*
- * Contact
- */
+ // Contact
print '';
if ($obj->fk_contact)
{
$cont = new Contact($db);
$cont->fetch($obj->fk_contact);
- print ''.img_object($langs->trans("ShowContact"),"contact").' '.$cont->fullname.'';
+ print ''.img_object($langs->trans("ShowContact"),"contact").' '.dolibarr_trunc($cont->fullname,32).'';
}
else
{
@@ -184,11 +175,11 @@ if ($resql)
}
print ' | ';
- /*
- *
- */
- print ''.dolibarr_trunc($obj->note, 20).' | ';
- print "$obj->code | \n";
+ // Note
+ print ''.dolibarr_trunc($obj->note, 16).' | ';
+
+ // Auteur
+ print ''.$obj->code.' | ';
print "\n";
$i++;