Skip to content
Snippets Groups Projects
Commit 0fc66f87 authored by llaffont's avatar llaffont
Browse files

Ajout notification prêt prolongé

parent 14d696c2
Branches
Tags
No related merge requests found
......@@ -330,14 +330,11 @@ class AbonneController extends ZendAfi_Controller_Action {
$result = $cls_comm->prolongerPret($this->_user, $id_pret);
$this->view->fiche = $this->_user->getFicheSigb();
$this->_helper->notify($result['statut'] == 1
? $this->_('Prêt prolongé')
: $result['erreur']);
if ($result['statut'] == 1) {
$this->view->fiche['message'] = $this->_('Prêt prolongé');
} else {
$this->view->fiche['erreur'] = $result['erreur'];
}
$this->renderScript('abonne/prets.phtml');
$this->_redirect('/opac/abonne/prets');
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment