From ebcac4fad7a9f28211cb3e391d11023a8a99493b Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 21 Jul 2004 14:51:24 +0000 Subject: [PATCH] Modif register_global --- htdocs/commande/fiche.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 48032df31ce..1db887b66e0 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -188,7 +188,7 @@ $html = new Form($db); * * ************************************************************************/ -if ($action == 'create') +if ($_GET["action"] == 'create') { print_titre("Créer une commande"); @@ -205,7 +205,7 @@ if ($action == 'create') { $sql = "SELECT s.nom, s.prefix_comm, s.idp "; $sql .= "FROM ".MAIN_DB_PREFIX."societe as s "; - $sql .= "WHERE s.idp = $socidp"; + $sql .= "WHERE s.idp = ".$_GET["socidp"]; } if ( $db->query($sql) ) @@ -247,7 +247,7 @@ if ($action == 'create') print "Projet :"; $proj = new Project($db); - $html->select_array("projetid",$proj->liste_array($socidp),0,1); + $html->select_array("projetid",$proj->liste_array($soc->id),0,1); print ""; if ($propalid > 0)