diff --git a/VERSIONS_HOTLINE/146941 b/VERSIONS_HOTLINE/146941 new file mode 100644 index 0000000000000000000000000000000000000000..c4f9670ff19aadfe57caef03c099a5515eefd75e --- /dev/null +++ b/VERSIONS_HOTLINE/146941 @@ -0,0 +1 @@ + - correctif #146941 : Magasin de thème : le lien "Générer" pour regénérer les vignettes est corrigé. \ No newline at end of file diff --git a/library/templates/Intonation/Library/View/Wrapper/Record.php b/library/templates/Intonation/Library/View/Wrapper/Record.php index dac33546c32ba9cdbf82d55b754c6204b80a6a5c..be574456dc90aa13af4b1304da268395b7780284 100644 --- a/library/templates/Intonation/Library/View/Wrapper/Record.php +++ b/library/templates/Intonation/Library/View/Wrapper/Record.php @@ -631,7 +631,8 @@ class Intonation_Library_View_Wrapper_Record extends Intonation_Library_View_Wra $actions [] = (new Intonation_Library_Link) ->setUrl($this->_view->url(['module' => 'admin', 'controller' => 'records', - 'action' => 'reset-thumbnail'], null, true)) + 'action' => 'reset-thumbnail', + 'id' => $this->_model->getId()], null, true)) ->setImage($this->getIco('refresh', 'utils')) ->setText($this->_('Générer …')) ->setTitle($this->_('Supprimer et re-générer la vignette de %s', diff --git a/tests/scenarios/Templates/TemplatesRecordsTest.php b/tests/scenarios/Templates/TemplatesRecordsTest.php index d2182a184ef357dcb5add8a8926a35aea85aa3f4..26f7e0ebeedec5e9547ff6280b9eaecb6a8094b3 100644 --- a/tests/scenarios/Templates/TemplatesRecordsTest.php +++ b/tests/scenarios/Templates/TemplatesRecordsTest.php @@ -253,6 +253,12 @@ class TemplatesRecordsViewnoticeTest extends TemplateRecordsWithDescriptionAndUn public function languagePictoShouldBeFasFaGlobeAfrica() { $this->assertXPath('//div[contains(@class, "badge-group")]//a[contains(@class, "badge_record_language")]//i[contains(@class, "fas fa-globe-africa")]'); } + + + /** @test */ + public function genererLaVignetteLinkShouldBePresent() { + $this->assertXPath('//a[contains(@class,"reset_record_thumbnail")][contains(@href, "admin/records/reset-thumbnail/id/2")]'); + } }