diff --git a/VERSIONS_HOTLINE/149582 b/VERSIONS_HOTLINE/149582 new file mode 100644 index 0000000000000000000000000000000000000000..4dc82a1ee34c63b3c02c9085ba9f9afb7f7b64f5 --- /dev/null +++ b/VERSIONS_HOTLINE/149582 @@ -0,0 +1 @@ + - correctif #149582 : Magasin de Thèmes : Correction de l'affichage de l'onglet auteur dans les notices \ No newline at end of file diff --git a/library/templates/Intonation/Library/View/Wrapper/Record/RichContent/Author.php b/library/templates/Intonation/Library/View/Wrapper/Record/RichContent/Author.php index 8aab66e34e64e2fefb3478d637cc345ef5c1a967..7e5bce94f365d8857a711dbacdcd390531e73466 100644 --- a/library/templates/Intonation/Library/View/Wrapper/Record/RichContent/Author.php +++ b/library/templates/Intonation/Library/View/Wrapper/Record/RichContent/Author.php @@ -35,7 +35,9 @@ class Intonation_Library_View_Wrapper_Record_RichContent_Author extends Intonati if ($this->_content) return $this->_content; - return $this->_content = $this->_view->renderAjax('noticeajax', 'author', [], $this->_getJsCallback()); + return $this->_content = $this->_view->renderAjax('noticeajax', + 'author', + ['id' => $this->_model->getId()], $this->_getJsCallback()); } diff --git a/tests/scenarios/Templates/TemplatesTest.php b/tests/scenarios/Templates/TemplatesTest.php index 82c69ee69de8c6dea617100e66f9c4fd3593a5e2..851c904021f7d8ba3ace62567d8ea6bd7ad4790f 100644 --- a/tests/scenarios/Templates/TemplatesTest.php +++ b/tests/scenarios/Templates/TemplatesTest.php @@ -1418,7 +1418,7 @@ class TemplatesDispatchRecordRelatedTest extends TemplatesIntonationTestCase { class TemplatesDispatchRecordAuthorTest extends TemplatesIntonationTestCase { /** @test */ - public function shouldDisplayAuthor() { + public function pageShouldContainsScriptLoadNoticeajaxAuthorId() { $unimarc = (new Class_NoticeUnimarc_Fluent) ->zoneWithContent('001', '12345') @@ -1434,7 +1434,7 @@ class TemplatesDispatchRecordAuthorTest extends TemplatesIntonationTestCase { 'facettes' => 'G13 M12']); $this->dispatch('/record/author/id/456/id_profil/72'); - $this->assertXPath('//div'); + $this->assertXPathContentContains('//script', '.load("/noticeajax/author/id/456"', $this->_response->getBody()); } }