diff --git a/VERSIONS_HOTLINE/38299 b/VERSIONS_HOTLINE/38299 new file mode 100644 index 0000000000000000000000000000000000000000..e0fb340dbf1600f9340203f3c82630edc8a6eddf --- /dev/null +++ b/VERSIONS_HOTLINE/38299 @@ -0,0 +1 @@ + - ticket #38299 : Administration : Correction du bouton de suppression de boite pour toujours afficher la popup de confirmation diff --git a/library/ZendAfi/View/Helper/FonctionsAdmin.php b/library/ZendAfi/View/Helper/FonctionsAdmin.php index f15ad7a8e377ca7848684fa4e28675f6ad89944d..e8c9cc77e7639016becf0d70adab634e3a75aab7 100644 --- a/library/ZendAfi/View/Helper/FonctionsAdmin.php +++ b/library/ZendAfi/View/Helper/FonctionsAdmin.php @@ -112,9 +112,9 @@ class ZendAfi_View_Helper_FonctionsAdmin extends ZendAfi_View_Helper_BaseHelper return $this->_tag('a', $this->view->tagImg(URL_ADMIN_IMG . 'ico/del.gif', - ['onclick' => $onclick, - 'alt' => $label, + ['alt' => $label, 'title' => $label]), - ['href' => $url]); + ['href' => $url, + 'onclick' => $onclick]); } } \ No newline at end of file diff --git a/tests/library/ZendAfi/View/Helper/Accueil/RechSimpleTest.php b/tests/library/ZendAfi/View/Helper/Accueil/RechSimpleTest.php index 3b6b3c4fa86444671353d28a0798d60619e7507c..e67a637000846b1df9cc459c670dc52b179d2aa1 100644 --- a/tests/library/ZendAfi/View/Helper/Accueil/RechSimpleTest.php +++ b/tests/library/ZendAfi/View/Helper/Accueil/RechSimpleTest.php @@ -71,7 +71,7 @@ class ZendAfi_View_Helper_Accueil_RechSimpleWithAdminTest extends ZendAfi_View_H /** @test */ public function deleteBlockActionShouldBePresent() { - $this->assertLocalXPath('//a[contains(@href, "/admin/accueil/delete-block/id_module/1/division/1")]'); + $this->assertLocalXPath('//a[contains(@href, "/admin/accueil/delete-block/id_module/1/division/1")][contains(@onclick, "return confirm(")]'); } }