diff --git a/VERSIONS_HOTLINE/119099 b/VERSIONS_HOTLINE/119099 new file mode 100644 index 0000000000000000000000000000000000000000..f8e3b9df65080a08ce3f8ba5b2ff8d0a3c0cf9aa --- /dev/null +++ b/VERSIONS_HOTLINE/119099 @@ -0,0 +1 @@ + - ticket #119099 : Articles : L'utilisateur ayant créé l'article n'est plus indexé en tant qu'auteur dans la notice Bokeh générée lorsque la case "Indexer l'article dans le catalogue ?" est cochée \ No newline at end of file diff --git a/library/Class/Indexation/PseudoNotice.php b/library/Class/Indexation/PseudoNotice.php index e340f01a14fada0257b828aaf041741782a51ad5..810363128dcab669fe45766aa480f47fe14aa02b 100644 --- a/library/Class/Indexation/PseudoNotice.php +++ b/library/Class/Indexation/PseudoNotice.php @@ -588,10 +588,7 @@ class Class_Indexation_PseudoNotice_Cms extends Class_Indexation_PseudoNotice{ parent::_prepareDatas(); $this->_datas['resume'] = $this->_sanitizeString($this->_datas['description']); $this->_datas['description'] = $this->_sanitizeString($this->_datas['contenu']); - $this->_datas['auteur'] = $this->_model->hasAuteur() - ? $this->_model->getAuteur()->getNomComplet() - : ''; - + $this->_datas['auteur'] = ''; // @see #119099 $this->_datas['annee'] = date('Y', strtotime($this->_model->getDateCreation())); } diff --git a/tests/library/Class/Indexation/PseudoNoticeTest.php b/tests/library/Class/Indexation/PseudoNoticeTest.php index 5b86a5ae410c11cabf39cc934c350e422ff6b733..58310d3f88bf3e27462276b1bd72a82e610f8ee0 100644 --- a/tests/library/Class/Indexation/PseudoNoticeTest.php +++ b/tests/library/Class/Indexation/PseudoNoticeTest.php @@ -471,9 +471,12 @@ class Class_Indexation_PseudoNoticeArticleTest } - /** @test */ - public function firstRecordMainAuthorShouldBeMusso() { - $this->assertEquals('Guillaume Musso', Class_Notice::find(1)->getAuteurPrincipal()); + /** + * @test + * @see #119099 + */ + public function firstRecordMainAuthorShouldBeEmpty() { + $this->assertEquals('', Class_Notice::find(1)->getAuteurPrincipal()); }