Correction objet
This commit is contained in:
parent
44e0c1a2d1
commit
0061eca831
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user