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);