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);
|
->Where('idCommande = ?', $identifiant);
|
||||||
}
|
}
|
||||||
$q->set('statutCommande', $statut);
|
$q->set('statutCommande', $statut);
|
||||||
|
|
||||||
$rows = $q->execute();
|
$rows = $q->execute();
|
||||||
|
$firephp->log($rows, 'rows');
|
||||||
if ( count($rows)>0 ){
|
if ( count($rows)>0 ){
|
||||||
//Liste des statuts
|
//Liste des statuts
|
||||||
$q = Doctrine_Query::create()
|
$q = Doctrine_Query::create()
|
||||||
->from('CommandesStatut')
|
->from('CommandesStatut')
|
||||||
->where('typeCommande = ?', 'C')
|
->where('typeCommande = ?', 'C')
|
||||||
->andWhere('ordre = ?', $statut);
|
->andWhere('id = ?', $statut);
|
||||||
$statut = $q->fetchOne();
|
$statut = $q->fetchOne();
|
||||||
$output = '<font color="red">'.$statut->libStatut.'</font>';
|
$output = '<font color="red">'.$statut->libStatut.'</font>';
|
||||||
if ( $statut->ordre==3 ){
|
if ( $statut->ordre==3 ){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user