Correction livraison des fichiers

This commit is contained in:
Michael RICOIS 2015-08-31 13:29:59 +00:00
parent 95bf03bf01
commit 38e4d0fe61

View File

@ -702,7 +702,7 @@ class SurveillanceController extends Zend_Controller_Action
$path = $c->profil->path->files;
// --- Lister les fichiers
if (empty($nomFic)){
if (empty($nomFic)) {
$ref = $user->getPrenom();
if ( strtolower($user->getLogin())=='cnasea95'
|| strtolower($user->getLogin())=='cnasea96'
@ -743,9 +743,9 @@ class SurveillanceController extends Zend_Controller_Action
}
$this->view->assign('listeFichier', $listeFichier);
}
//Lister les annonces
elseif (empty($getCSV))
{
// --- Lister les annonces
elseif (empty($getCSV)) {
$selectFiltre = array(
'procol' => array('lib'=> 'Procédures collectives', 'select'=>''),
'radiations' => array('lib'=> 'Radiations', 'select'=>''),
@ -881,7 +881,10 @@ class SurveillanceController extends Zend_Controller_Action
$this->view->assign('annonces', $tab);
$this->view->assign('nomFic', $nomFic);
$this->renderScript('surveillance/fichier-ann.phtml');
} else {
}
// --- Livraison du fichier
else {
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
@ -896,7 +899,7 @@ class SurveillanceController extends Zend_Controller_Action
$params->ref = $ref;
$params->nomFic = $nomFic;
$response = $client->getListeFichierSurv($params);
$fileUrl = $response->item[0]->UrlFichier.'.bz2';
$fileUrl = $response->result->item[0]->UrlFichier.'.bz2';
} catch (SoapFault $fault) {}
try {