diff --git a/VERSIONS b/VERSIONS index 57b19818c221523b23c779770b2bbb227de20f4c..472ffc3e4d01feb425518de9c551846b3b966c71 100644 --- a/VERSIONS +++ b/VERSIONS @@ -1,3 +1,8 @@ +26/10/2015 - v7.2.19 + + - correction affichage des avis dans la boite avis. + + 26/10/2015 - v7.2.18 - ticket #31743 : Correction du lien d'edition et suppression des sous catégories en mode liste diff --git a/library/Class/AvisNotice.php b/library/Class/AvisNotice.php index 90ff1d8c7ddc85bf6c65e4023e89b543dd042096..c33fd68292d22315edd3bc98df9fb45eafb84231 100644 --- a/library/Class/AvisNotice.php +++ b/library/Class/AvisNotice.php @@ -259,6 +259,8 @@ class Class_AvisNotice extends Storm_Model_Abstract { public function getNotices() { + if (!isset($this->_notices)) + $this->_notices = $this->findNoticesByClefOeuvre(); return $this->_notices; } diff --git a/library/startup.php b/library/startup.php index ea0ddb10aa4f8af523c45c072369617b6d91cfbd..56c3ea6936202218f762d803ce730d69e52da8d3 100644 --- a/library/startup.php +++ b/library/startup.php @@ -64,7 +64,7 @@ function defineConstant($name, $value) { function setupConstants() { defineConstant('BOKEH_MAJOR_VERSION','7.2'); - defineConstant('BOKEH_RELEASE_NUMBER', BOKEH_MAJOR_VERSION . '.18'); + defineConstant('BOKEH_RELEASE_NUMBER', BOKEH_MAJOR_VERSION . '.19'); defineConstant('BOKEH_REMOTE_FILES', 'http://git.afi-sa.fr/afi/opacce/'); diff --git a/tests/library/Class/AvisNoticeTest.php b/tests/library/Class/AvisNoticeTest.php index d34e86ca253551964c9ad5cbba2b11f7159a4e4f..30fd7af1c0d4d9af29219ff752fe52f7e9d23754 100644 --- a/tests/library/Class/AvisNoticeTest.php +++ b/tests/library/Class/AvisNoticeTest.php @@ -400,6 +400,16 @@ class NoticeTestHasManyAvisTest extends Storm_Test_ModelTestCase { } + + + /** @test */ + public function milleniumAvisFirstNoticesShouldNoticeMillenium() { + $this->assertEquals($this->millenium, + $this->avis_millenium_steve->getFirstNotice()); + } + + + /** @test */ public function noticeMilleniumGetAvisShouldReturnAllAvisOnClefOeuvre() { $found_avis = $this->millenium->getAvis();