Correction problème de modification des etats sur les commandes kbis
This commit is contained in:
parent
8b26da2758
commit
eba469d3b4
@ -67,14 +67,14 @@ switch ( $action ) {
|
||||
->Where('idCommande = ?', $identifiant);
|
||||
}
|
||||
$q->set('statutCommande', $statut);
|
||||
|
||||
$rows = $q->execute();
|
||||
$firephp->log($rows, 'rows');
|
||||
if ( count($rows)>0 ){
|
||||
//Liste des statuts
|
||||
$q = Doctrine_Query::create()
|
||||
->from('CommandesStatut')
|
||||
->where('typeCommande = ?', 'C')
|
||||
->andWhere('ordre = ?', $statut);
|
||||
->andWhere('id = ?', $statut);
|
||||
$statut = $q->fetchOne();
|
||||
$output = '<font color="red">'.$statut->libStatut.'</font>';
|
||||
if ( $statut->ordre==3 ){
|
||||
|
Loading…
x
Reference in New Issue
Block a user