Variable MenuHisto pour gestion de l'affichage

This commit is contained in:
Michael RICOIS 2016-05-12 16:09:03 +02:00
parent 3dc15579b8
commit 248cef6ffd

View File

@ -7,7 +7,7 @@ class Application_Controller_Plugin_Histo extends Zend_Controller_Plugin_Abstrac
$controller = $request->getControllerName();
$action = $request->getActionName();
if ($module == 'default' && $controller == 'index' && $action = 'index') {
if ($module != 'legal') {
return;
}
@ -19,6 +19,8 @@ class Application_Controller_Plugin_Histo extends Zend_Controller_Plugin_Abstrac
if ( $layout->isEnabled() ) {
$user = new Scores_Utilisateur();
if ( $user->isLog() ) {
$view = $layout->getView();
$view->MenuHisto = true;
// --- Detecter les changements d'entité pour ne recharger la liste qu'au changement
$session = new Zend_Session_Namespace('histo');
$getLogs = true;
@ -34,7 +36,6 @@ class Application_Controller_Plugin_Histo extends Zend_Controller_Plugin_Abstrac
}
// --- Get Log
$view = $layout->getView();
if ($getLogs) {
$view->UserHisto = array();
$ws = new Scores_Ws_Client('gestion', '0.4');