diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index c8c38733ac1..66c2ab73834 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -609,7 +609,7 @@ else $sql.= ", p.label"; $sql.= " FROM ".MAIN_DB_PREFIX."commande_fournisseurdet as l"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."product as p ON l.fk_product = p.rowid"; - $sql.= " WHERE l.fk_commande = $commande->id"; + $sql.= " WHERE l.fk_commande = ".$commande->id; $sql.= " ORDER BY l.rowid"; $resql = $db->query($sql); @@ -669,14 +669,17 @@ else if ($_GET["action"] == 'editline' && $_GET["rowid"] == $objp->rowid) { print "