Suppression condition inutile dans requête sql
This commit is contained in:
parent
cf98c8abb4
commit
8b26da2758
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user