From c78aa540cd2c303e05d9ad9d917a51feea8146b1 Mon Sep 17 00:00:00 2001 From: efalcy <efalcy@afi-sa.fr> Date: Fri, 2 Oct 2015 18:50:44 +0200 Subject: [PATCH] sandbox : display all notice reviews on admin , fix test --- application/modules/opac/controllers/AbonneController.php | 1 + library/Class/AvisNotice.php | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/application/modules/opac/controllers/AbonneController.php b/application/modules/opac/controllers/AbonneController.php index 246ca25151f..9ec3ebb5d23 100644 --- a/application/modules/opac/controllers/AbonneController.php +++ b/application/modules/opac/controllers/AbonneController.php @@ -145,6 +145,7 @@ class AbonneController extends ZendAfi_Controller_Action { ->setAvis($this->_request->getParam('avisTexte')) ->setNote($this->_request->getParam('avisNote')) ->setUser($this->_user) + ->setIdNotice($id_notice) ->setClefOeuvre($notice->getClefOeuvre()) ->setStatut(0); diff --git a/library/Class/AvisNotice.php b/library/Class/AvisNotice.php index 245a31e0704..5cb7e9c781d 100644 --- a/library/Class/AvisNotice.php +++ b/library/Class/AvisNotice.php @@ -185,11 +185,6 @@ class Class_AvisNotice extends Storm_Model_Abstract { } - public function getNote() { - return !$this->_attributes['note'] ? - 0 : $this->_attributes['note']; - } - public static function getNoteAverage($avis_list) { if (!$avis_list or count($avis_list) == 0) -- GitLab