From 197c891fa488ad9141e6ff410177680d8a0c21d5 Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Thu, 8 Sep 2016 16:24:27 +0200 Subject: [PATCH] use getnomUrl of society instead 'handmade' url; --- htdocs/contact/list.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php index 5504d43671c..7d600750cff 100644 --- a/htdocs/contact/list.php +++ b/htdocs/contact/list.php @@ -702,13 +702,12 @@ if ($result) print ''; if ($obj->socid) { - print ''; - print img_object($langs->trans("ShowCompany"),"company").' '.dol_trunc($obj->name,20).''; + $objsoc = new Societe($db); + $objsoc->fetch($obj->socid); + print $objsoc->getNomUrl(1); } else - { print ' '; - } print ''; }