From cb7399f7f213ef36e13a0ab1bba070fc1fec346d Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 22 Apr 2010 07:30:24 +0000 Subject: [PATCH] Correction requete ou --- includes/infogreffe/gestion.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/infogreffe/gestion.php b/includes/infogreffe/gestion.php index 0af82e97a..03d9a2a3a 100644 --- a/includes/infogreffe/gestion.php +++ b/includes/infogreffe/gestion.php @@ -234,7 +234,7 @@ function commandesListe($type, $etat, $date, $mode = ''){ } if ($mode!='-'){ if ($mode == 'G') { - $q->orWhereIn('typeCommande', array('', $mode)); + $q->andWhereIn('typeCommande', array('', $mode)); } else { $q->andWhere('typeCommande = ?', $mode); } @@ -242,7 +242,8 @@ function commandesListe($type, $etat, $date, $mode = ''){ if (!hasModeEdition()){ $q->andWhere('login = ?', $_SESSION['tabInfo']['login']); } - + FB::log($q->getSqlQuery(), 'QUERY'); + FB::log($q->getFlattenedParams(), 'PARAMS'); //Résultat $commandes = $q->execute(); @@ -250,7 +251,6 @@ function commandesListe($type, $etat, $date, $mode = ''){ $outputCommandes = array(); if($type!='-' && count($commandes)>0){ foreach ($commandes as $commande){ - FB::log($commande->refDocument, 'ref'); if (filtreTypeCommande($type, $commande->refDocument)){ $outputCommandes[] = $commande; }