From 8b26da275862558e1881f33665b14bdcd7ac7f72 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 5 Aug 2010 16:07:55 +0000 Subject: [PATCH] =?UTF-8?q?Suppression=20condition=20inutile=20dans=20requ?= =?UTF-8?q?=C3=AAte=20sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/saisie/index.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/saisie/index.php b/includes/saisie/index.php index a514aef85..fec271912 100644 --- a/includes/saisie/index.php +++ b/includes/saisie/index.php @@ -60,13 +60,11 @@ switch ( $action ) { if ( $type == 'K'){ $q = Doctrine_Query::create() ->update('CommandesKbis') - ->Where('id = ?', $identifiant) - ->andWhere('type = ?', 'C'); + ->Where('id = ?', $identifiant); } else { $q = Doctrine_Query::create() ->update('Commandes') - ->Where('idCommande = ?', $identifiant) - ->andWhere('typeCommande = ?', 'C'); + ->Where('idCommande = ?', $identifiant); } $q->set('statutCommande', $statut);