mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
* Fix false success message on sendmail plugin #409 * remove unnecessary else statement when fixing false success message on sendmail #409
This commit is contained in:
committed by
Raphael Michel
parent
8310597944
commit
7b33fc6633
@@ -42,6 +42,9 @@ class SenderView(EventPermissionRequiredMixin, FormView):
|
||||
|
||||
failures = []
|
||||
self.output = {}
|
||||
if not orders:
|
||||
messages.error(self.request, _('There are no orders matching this selection.'))
|
||||
return self.get(self.request, *self.args, **self.kwargs)
|
||||
for o in orders:
|
||||
if self.request.POST.get("action") == "preview":
|
||||
for l in self.request.event.settings.locales:
|
||||
|
||||
Reference in New Issue
Block a user