Skip to content
Snippets Groups Projects
Commit ce9c507c authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Correction selection des societe lors de la creation d'un contrat

parent 7f459fe6
No related branches found
No related tags found
No related merge requests found
<?PHP
/* Copyright (C) 2004-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2004-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
*
* 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 '<tr><td width="20%">Client</td><td >';
$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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment