diff --git a/application/controllers/ComptageController.php b/application/controllers/ComptageController.php index 446424c2..78cfb6c5 100644 --- a/application/controllers/ComptageController.php +++ b/application/controllers/ComptageController.php @@ -48,21 +48,21 @@ class ComptageController extends Zend_Controller_Action public function resetAction() { - require_once 'Scores/SessionCiblage.php'; $erreurs = new Zend_Session_Namespace('erreurs'); - $session = new SessionCiblage(); - $session->clearCiblage(); + + $fields = new Scores_Fields(); + $fields->clearCiblage(); + unset($erreurs->erreurs); - $this->_redirect('./'); + $this->_redirect('/'); } public function savedialogAction() { $this->_helper->layout()->disableLayout(); //Récupération de la session pour le profil et les valeurs du comptage - require_once 'Scores/SessionCiblage.php'; - $session = new SessionCiblage(); - $criteres = $session->getCriteres(); + $fields = new Scores_Fields(); + $criteres = $fields->getCriteres(); $this->view->criteres = $criteres; if (count($criteres) == 0) {