Suppression condition inutile dans requête sql

This commit is contained in:
Michael RICOIS 2010-08-05 16:08:57 +00:00
commit ee8a891ce7

View File

@ -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);