From 0418f64b2d8fb12a4446fab06db6febbfe1e292d Mon Sep 17 00:00:00 2001 From: llaffont <laurent.laffont@gmail.com> Date: Mon, 20 Jan 2014 10:12:58 +0100 Subject: [PATCH] Modification album / ressources: correction chargement tag_selection.js --- library/ZendAfi/View/Helper/Admin/TagListeSuggestion.php | 3 ++- .../modules/admin/controllers/AlbumControllerTest.php | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/library/ZendAfi/View/Helper/Admin/TagListeSuggestion.php b/library/ZendAfi/View/Helper/Admin/TagListeSuggestion.php index e83db63f3d1..e1f52b0fa85 100644 --- a/library/ZendAfi/View/Helper/Admin/TagListeSuggestion.php +++ b/library/ZendAfi/View/Helper/Admin/TagListeSuggestion.php @@ -27,7 +27,8 @@ class ZendAfi_View_Helper_Admin_TagListeSuggestion extends ZendAfi_View_Helper_B // Main routine //---------------------------------------------------------------------------------- public function TagListeSuggestion($rubrique,$name,$valeurs="") { - + Class_ScriptLoader::getInstance()->addAdminScript('tag_selection'); + $selection = $html = ''; // Lire les libelles en fonction de la rubrique $min_cars_recherche=1; diff --git a/tests/application/modules/admin/controllers/AlbumControllerTest.php b/tests/application/modules/admin/controllers/AlbumControllerTest.php index ebc660b40d7..d343e42708b 100644 --- a/tests/application/modules/admin/controllers/AlbumControllerTest.php +++ b/tests/application/modules/admin/controllers/AlbumControllerTest.php @@ -1486,6 +1486,12 @@ class Admin_AlbumControllerAlbumHarlockEditRessourceOneActionTest extends Admin_ function formShouldHaveTagSuggestForMatiere() { $this->assertXPath("//input[@name='matiere'][@value='999']"); } + + + /** @test */ + public function tagSelectionJSShouldBeLoaded() { + $this->assertXPath('//script[contains(@src, "tag_selection.js")]'); + } } -- GitLab