diff --git a/application/modules/admin/controllers/NewsletterController.php b/application/modules/admin/controllers/NewsletterController.php index ebe10fa3a5573326fd34a07a4105802e5295af98..08c7e239fb23c1adec4f904d59aec3b62305e563 100644 --- a/application/modules/admin/controllers/NewsletterController.php +++ b/application/modules/admin/controllers/NewsletterController.php @@ -44,7 +44,7 @@ class Admin_NewsletterController extends ZendAfi_Controller_Action { return $this->view->tag('span', $this->view->boutonIco("picto=users", "bulle=" . $this->_('Inscrits')) . $model->getNumberOfUsers(), ['style' => 'white-space:nowrap']); }], ['action' => 'sendtest', 'content' => $this->view->boutonIco('type=test')], - ['action' => 'sendnewsletter', 'content' => $this->view->boutonIco('type=mail')], + ['action' => 'send', 'content' => $this->view->boutonIco('type=mail')], ['action' => 'duplicate', 'content' => $this->view->boutonIco('type=duplicate')], ['action' => 'delete', 'content' => $this->view->boutonIco('type=del')], ], diff --git a/application/modules/admin/views/scripts/newsletter/index.phtml b/application/modules/admin/views/scripts/newsletter/index.phtml index 48a8e4c198a50a6f0538f190c66631d4814ac02e..328a468aec8d88b5a3fdf06712a0aca820805f8c 100644 --- a/application/modules/admin/views/scripts/newsletter/index.phtml +++ b/application/modules/admin/views/scripts/newsletter/index.phtml @@ -27,6 +27,6 @@ function sendNewsletterClick(event) { } $(document).ready(function() { - $("a[rel='sendnewsletter']").click(sendNewsletterClick); + $("a[rel='send']").click(sendNewsletterClick); }); </script> diff --git a/tests/application/modules/admin/controllers/NewsletterControllerTest.php b/tests/application/modules/admin/controllers/NewsletterControllerTest.php index b0d4e91b162d1a5178ebcd1a446d56fa2a3b420d..15cf4e26f4a40143a297bc2169aad469d759cb92 100644 --- a/tests/application/modules/admin/controllers/NewsletterControllerTest.php +++ b/tests/application/modules/admin/controllers/NewsletterControllerTest.php @@ -160,7 +160,7 @@ class Admin_NewsletterControllerIndexActionTest extends Admin_NewsletterControll public function testSendNouveautesClassiqueLink() { - $this->assertXPath("//a[@href='/admin/newsletter/send/id/1']"); + $this->assertXPath("//a[@href='/admin/newsletter/send/id/1'][@rel='sendnewsletter']", $this->_response->getBody()); }