From 0061eca831bc88b79fbc303d5d4526837fdb66b6 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 7 Dec 2011 08:26:18 +0000 Subject: [PATCH] Correction objet --- application/controllers/DashboardController.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/application/controllers/DashboardController.php b/application/controllers/DashboardController.php index caa19df2d..b7bd268d9 100644 --- a/application/controllers/DashboardController.php +++ b/application/controllers/DashboardController.php @@ -199,7 +199,7 @@ class DashboardController extends Zend_Controller_Action } elseif (!empty($date)) { $listCommandes = $gestionCommande->listCommandesGreffe($date, $etat, $mode); } - + //Liste des différents états pour les commandes if ($mode!='-'){ ${'status'.$mode} = $gestionCommande->listStatus($mode); @@ -218,12 +218,12 @@ class DashboardController extends Zend_Controller_Action //Etat de la commande $cmdEtatSelect = array(); $cmdEtatSelect[] = array('value'=>0, 'select'=>'', 'affichage'=>''); - $typeCommande = $listCommandes[$i]['typeCommande']; + $typeCommande = $listCommandes[$i]->typeCommande; Zend_Registry::get('firebug')->info($typeCommande); if (isset(${'status'.$typeCommande})){ foreach(${'status'.$typeCommande} as $item){ $select = ''; - if ($item['id']==$listCommandes[$i]['statutCommande']){ + if ($item['id']==$listCommandes[$i]->statutCommande){ $select = ' selected'; } $cmdEtatSelect[] = array( @@ -233,20 +233,20 @@ class DashboardController extends Zend_Controller_Action ); } } - $listCommandes[$i]['cmdEtatSelect'] = $cmdEtatSelect; + $listCommandes[$i]->cmdEtatSelect = $cmdEtatSelect; //Lien vers le fichier $documentLien = ''; switch($type) { case 'greffe': - if (preg_match('/^([0-9a-zA-Z]{2}-).*?$/', $listCommandes[$i]['refDocument'], $matches)){ + if (preg_match('/^([0-9a-zA-Z]{2}-).*?$/', $listCommandes[$i]->refDocument, $matches)){ $documentLien = $this->view->url(array( 'controller' => 'pieces', 'action' => 'actes', 'siret' => $listCommandes[$i]['siren'], )); - } elseif (preg_match('/^([0-9]{4}).*?$/', $listCommandes[$i]['refDocument'], $matches)){ + } elseif (preg_match('/^([0-9]{4}).*?$/', $listCommandes[$i]->refDocument, $matches)){ $documentLien = $this->view->url(array( 'controller' => 'pieces', 'action' => 'bilans', @@ -255,7 +255,7 @@ class DashboardController extends Zend_Controller_Action } break; } - $listCommandes[$i]['documentLien'] = $documentLien; + $listCommandes[$i]->documentLien = $documentLien; } }