From acdda9a07c28086280a6e9d2abd6cd7d91fee977 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 6 Apr 2006 12:17:00 +0000 Subject: [PATCH] Suppression infos inutiles --- htdocs/telephonie/ligne/commentaires.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/htdocs/telephonie/ligne/commentaires.php b/htdocs/telephonie/ligne/commentaires.php index a58032aa9a4..475d9f782f0 100644 --- a/htdocs/telephonie/ligne/commentaires.php +++ b/htdocs/telephonie/ligne/commentaires.php @@ -41,6 +41,12 @@ if ($_GET["id"]) $ligne = new LigneTel($db); $result = $ligne->fetch_by_id($_GET["id"]); + if ($result == 1) + { + $client_comm = new Societe($db); + $client_comm->fetch($ligne->client_comm_id, $user); + } + $soc = new Societe($db); $result = $soc->fetch($ligne->client_comm_id, $user); @@ -142,8 +148,7 @@ if ($_GET["id"]) print $client_comm->nom.''.$client_comm->code_client; print ''; - print 'Numéro'.dolibarr_print_phone($ligne->numero); - print " ".$ligne->support.''; + print 'Numéro'.dolibarr_print_phone($ligne->numero).''; print 'Facturée : '.$ligne->facturable.''; $client = new Societe($db, $ligne->client_id);