diff --git a/application/modules/opac/controllers/AuthController.php b/application/modules/opac/controllers/AuthController.php index 95fb8f904f099919237225acf709249adeb407ef..51ec1835b70d3ce8d98813c9629af2f9e01c7096 100644 --- a/application/modules/opac/controllers/AuthController.php +++ b/application/modules/opac/controllers/AuthController.php @@ -55,7 +55,7 @@ class AuthController extends Zend_Controller_Action return $this->view->_('Identifiant ou mot de passe incorrect.'); $user = Class_Users::getIdentity(); - $this->_helper->trackEvent('authentification', 'login', $user->getLibelleRole(), $user->getId()); + $this->_helper->trackEvent('authentification', 'login', $user->getId()); } //------------------------------------------------------------------------------------------------------ diff --git a/library/ZendAfi/Controller/Action/Helper/TrackEvent.php b/library/ZendAfi/Controller/Action/Helper/TrackEvent.php index 72b7e79a45e2ff1e14b0f1fc3d4e6d0a3a830b63..ad6f8d67a402e81c8ebc995e3cfb57c9aa2c2b86 100644 --- a/library/ZendAfi/Controller/Action/Helper/TrackEvent.php +++ b/library/ZendAfi/Controller/Action/Helper/TrackEvent.php @@ -23,18 +23,17 @@ class ZendAfi_Controller_Action_Helper_TrackEvent extends Zend_Controller_Action /** * voir [[file:~/public_html/afi-opac3/library/Class/ScriptLoader.php::public%20function%20executeTrackEvents()%20{][Class_ScriptLoader::executeTrackEvents]] */ - public function trackEvent($category, $action, $label, $value) { + public function trackEvent($category, $action, $value) { $this->getActionController() ->getHelper('flashMessenger') ->addMessage([ZendAfi_Controller_Action_Helper_FlashMessenger::TRACK_EVENT => ['category' => $category, 'action' => $action, - 'label' => 'abonne_sigb', 'value' => 2]]); } - public function direct($category, $action, $label, $value) { - return $this->trackEvent($category, $action, $label, $value); + public function direct($category, $action, $value) { + return $this->trackEvent($category, $action, $value); } } diff --git a/tests/application/modules/opac/controllers/AuthControllerTest.php b/tests/application/modules/opac/controllers/AuthControllerTest.php index 68d523087a8b4d68f36cbc2a23e6b5172289c987..149298c6edd8b65a53bf2650dbf001b22b18d6c0 100644 --- a/tests/application/modules/opac/controllers/AuthControllerTest.php +++ b/tests/application/modules/opac/controllers/AuthControllerTest.php @@ -461,7 +461,6 @@ class AuthControllerPostSimpleSuccessfulTest extends AuthControllerPostSimpleTes $this->assertFlashMessengerContains(['track_event' => ['category' => 'authentification', 'action' => 'login', - 'label' => 'abonne_sigb', 'value' => '2']]); } }