diff --git a/VERSIONS_HOTLINE/127891 b/VERSIONS_HOTLINE/127891 new file mode 100644 index 0000000000000000000000000000000000000000..14ae99a7bcdc62426be4b81158caf1c7e1fd91bb --- /dev/null +++ b/VERSIONS_HOTLINE/127891 @@ -0,0 +1 @@ + - ticket #127891 : Administration : Remplacement de l'icône d'aperçu des lettres d'information. La case à cocher devient un œil. \ No newline at end of file diff --git a/library/ZendAfi/Controller/Plugin/Manager/Newsletter.php b/library/ZendAfi/Controller/Plugin/Manager/Newsletter.php index a5d3a8ae966f2fe2fdee4575eac2cc4a59e88fc2..4bbe041a4072cd186e6f3187425b8a77fe1aeaeb 100644 --- a/library/ZendAfi/Controller/Plugin/Manager/Newsletter.php +++ b/library/ZendAfi/Controller/Plugin/Manager/Newsletter.php @@ -32,7 +32,7 @@ class ZendAfi_Controller_Plugin_Manager_Newsletter extends ZendAfi_Controller_Pl 'icon' => 'edit', 'label' => $this->_('Modifier la newsletter')], ['url' => '/admin/newsletter/preview/id/%s', - 'icon' => 'show', + 'icon' => 'view', 'label' => $this->_('Visualiser la newsletter')], ['url' => '/admin/newsletter/edit-subscribers/id/%s', 'icon' => 'users', diff --git a/tests/application/modules/admin/controllers/NewsletterControllerTest.php b/tests/application/modules/admin/controllers/NewsletterControllerTest.php index 8a32e20597899aeb557c8470f9445c6ec2e5c384..8efaac07dba487a0ae62f4243a2f14e74132658d 100644 --- a/tests/application/modules/admin/controllers/NewsletterControllerTest.php +++ b/tests/application/modules/admin/controllers/NewsletterControllerTest.php @@ -154,8 +154,9 @@ class Admin_NewsletterControllerIndexActionTest extends Admin_NewsletterControll } - public function testPreviewNouveautesClassiqueLink() { - $this->assertXPath("//a[contains(@href, '/admin/newsletter/preview/id/1')]"); + public function testPreviewNouveautesClassiqueLinkWithViewIco() { + $this->assertXPath("//a[contains(@href, '/admin/newsletter/preview/id/1')]" + . "/img[@class='ico'][contains(@src,'view')]"); }