diff --git a/library/ZendAfi/Controller/Action.php b/library/ZendAfi/Controller/Action.php index a7182d3f4f2a52928605461def94468ad0c7e4a7..bf303b86162dde8965b733c759c3524676983798 100644 --- a/library/ZendAfi/Controller/Action.php +++ b/library/ZendAfi/Controller/Action.php @@ -413,8 +413,9 @@ class ZendAfi_Controller_Action extends Zend_Controller_Action { $strategy=$this->_getParam('strategy','Article'); $model='Class_'.$strategy; $id_name='id_'.$strategy; + foreach(explode(';',$this->_getParam('ids',0)) as $id) + $models[]=$model::find($id); - $models = $model::findAllBy([$id_name=> explode(';',$this->_getParam('ids',0))] ); $this->view->lettre = Class_ModeleFusion::getBibliorecord($this->_getParam('modele_fusion'));