Correction objet

This commit is contained in:
Michael RICOIS 2011-12-07 08:26:18 +00:00
parent 44e0c1a2d1
commit 0061eca831

View File

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