Skip to content
Snippets Groups Projects
Commit 0a14bcc0 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #33721 fix profil selector in footer admin tools

parent 50cc8387
Branches
Tags
7 merge requests!1553Master,!1502Master,!1501Stable,!1472Stable,!1397Master,!1396Hotline master,!1394Hotline#33721 profil selector url error
- ticket #33721 : Correction de l'accès à un profil par le menu déroulant en bas de page dans les outils d'administration
......@@ -73,7 +73,7 @@ class ZendAfi_View_Helper_ComboProfils extends ZendAfi_View_Helper_BaseHelper {
$extra = '';
if ($autoload)
$extra = ' onchange="window.location=\''.BASE_URL.'?id_profil=\' + this.value"';
$extra = ' onchange="window.location=\''. Class_Url::baseUrl() . '?id_profil=\' + this.value"';
return sprintf('<label for="%s" style="display:none">'.
$this->view->_('Profil').
......
......@@ -120,6 +120,12 @@ class IndexControllerAsAdminWithCssEditorAndNoHeaderCss extends IndexControllerA
public function linkToConfigurePageShouldBeInFooter() {
$this->assertXPath('//div[@class="footer"]//a[@class="edit_profil"][contains(@href, "admin/profil/accueil/id_profil/1")]');
}
/** @test */
public function comboProfilOnChangeShouldContainsBaseUrl() {
$this->assertXPath('//div[@class="footer"]//select[@id="select_clef_profil"][contains(@onchange, "' . Class_Url::baseUrl() . '?id_profil=")]');
}
}
......@@ -446,4 +452,4 @@ class IndexControllerInspectorGadgetTest extends AbstractControllerTestCase {
: [];
$this->assertEquals([], $calls);
}
}
\ No newline at end of file
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment