From ce9c507ce1fb16d32abeae246c67d993f78a377e Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 9 Apr 2007 11:32:50 +0000 Subject: [PATCH] Correction selection des societe lors de la creation d'un contrat --- htdocs/telephonie/contrat/fiche.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/telephonie/contrat/fiche.php b/htdocs/telephonie/contrat/fiche.php index a5dbf607cd8..7e1aa79aef5 100644 --- a/htdocs/telephonie/contrat/fiche.php +++ b/htdocs/telephonie/contrat/fiche.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2007 Rodolphe Quiedeville * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -155,7 +155,7 @@ if ($_GET["action"] == 'create' && $user->rights->telephonie->ligne->creer) print 'Client'; $ff = array(); - $sql = "SELECT idp, nom, ville FROM ".MAIN_DB_PREFIX."societe WHERE client=1 AND parent = 0 ORDER BY nom "; + $sql = "SELECT idp, nom, ville FROM ".MAIN_DB_PREFIX."societe WHERE client=1 AND (parent = 0 OR parent IS NULL) ORDER BY nom "; if ( $db->query( $sql) ) { $num = $db->num_rows();