Skip to content
Snippets Groups Projects
Commit d96887f3 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Adding missing parameter to send again button/action

parent b9049c89
No related branches found
No related tags found
No related merge requests found
......@@ -90,8 +90,10 @@ class QueueController extends ActionController {
* send or resend a mail in the queue
*
* @param int $uid
* @param string $selectedExtension
* @param string $selectedTemplate
*/
public function sendMailAction($uid) {
public function sendMailAction($uid, $selectedExtension, $selectedTemplate) {
$mailService = new MailTemplateService();
$mailService->sendMailFromQueue($uid);
......
......@@ -64,7 +64,7 @@
<source>No template was registered.</source>
</trans-unit>
<trans-unit id="backend.no_queue_entries">
<source>There are no Entries in the Mail Queue for this Template.</source>
<source>There are no entries in the mail queue for this template.</source>
</trans-unit>
<trans-unit id="backend.not_sent">
<source>Not Sent</source>
......
......@@ -31,17 +31,17 @@
<td>
<f:if condition="{mail.sent} == '0'">
<f:then>
<f:link.action class="btn btn-default btn-send-now" controller="Queue" action="sendMail" arguments="{uid: mail.uid}">
<f:link.action class="btn btn-default btn-send-now" controller="Queue" action="sendMail" arguments="{uid: mail.uid, selectedTemplate: selectedTemplateKey, selectedExtension: selectedExtensionKey}">
<span class="t3js-icon icon icon-size-small icon-state-default actions-document-import-t3d">
<span class="icon-markup">
<img src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/actions/actions-document-import-t3d.svg" width="16" height="16">
</span>
</span>
</span>s
Send Now
</f:link.action>
</f:then>
<f:else>
<f:link.action class="btn btn-default btn-resend" controller="Queue" action="sendMail" arguments="{uid: mail.uid}">
<f:link.action class="btn btn-default btn-resend" controller="Queue" action="sendMail" arguments="{uid: mail.uid, selectedTemplate: selectedTemplateKey, selectedExtension: selectedExtensionKey}">
<span class="t3js-icon icon icon-size-small icon-state-default icon-actions-insert-reference">
<span class="icon-markup">
<img src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/actions/actions-insert-reference.svg" width="16" height="16">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment