Fichier bilan association : correction

This commit is contained in:
Michael RICOIS 2016-03-10 09:04:22 +00:00
parent ec16449ace
commit 47aa8d5120

View File

@ -998,8 +998,8 @@ class PiecesController extends Zend_Controller_Action
$c = Zend_Registry::get('config');
$file = 'bilan-'.$siren.'-'.$type.'-'.$dateCloture.'.pdf';
if (copy($stream->getStreamName(), $c->profil->path->shared . '/temp/files/' . $file)) {
$this->view->assign('url', $this->view->url(array('module'=>'file', 'controller'=>'fichier',
'action' => 'greffe', 'q'=>$file), 'default', true));
$this->view->assign('url', $this->view->url(array('module'=>'file', 'controller'=>'greffe',
'action' => 'association', 'q'=>$file), 'default', true));
} else {
$this->view->assign('msg', "Impossible de distribuer le fichier.");
}