Skip to content
Snippets Groups Projects
Commit 1c1f2c02 authored by efalcy's avatar efalcy
Browse files

hotline #49590 : fix send link

parent 932c18f6
Branches
Tags
2 merge requests!1896Master,!1871Hotline#49590 pas de confirmation d envoi de nl
......@@ -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')],
],
......
......@@ -27,6 +27,6 @@ function sendNewsletterClick(event) {
}
$(document).ready(function() {
$("a[rel='sendnewsletter']").click(sendNewsletterClick);
$("a[rel='send']").click(sendNewsletterClick);
});
</script>
......@@ -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());
}
......
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