forked from CGM_Public/pretix_original
Refs #447 -- Extend copying old mails to subject and receipients
This commit is contained in:
@@ -38,8 +38,11 @@ class SenderView(EventPermissionRequiredMixin, FormView):
|
|||||||
event=self.request.event,
|
event=self.request.event,
|
||||||
action_type='pretix.plugins.sendmail.sent'
|
action_type='pretix.plugins.sendmail.sent'
|
||||||
)
|
)
|
||||||
message = LazyI18nString(logentry.parsed_data['message'])
|
kwargs['initial'] = {
|
||||||
kwargs['initial'] = {'message': message}
|
'message': LazyI18nString(logentry.parsed_data['message']),
|
||||||
|
'subject': LazyI18nString(logentry.parsed_data['subject']),
|
||||||
|
'sendto': logentry.parsed_data['sendto'],
|
||||||
|
}
|
||||||
except LogEntry.DoesNotExist:
|
except LogEntry.DoesNotExist:
|
||||||
raise Http404(_('You supplied an invalid log entry ID'))
|
raise Http404(_('You supplied an invalid log entry ID'))
|
||||||
return kwargs
|
return kwargs
|
||||||
|
|||||||
Reference in New Issue
Block a user