Sendmail: Fix incorrect filtering of subevents when mailing to attendees (Z#23166274) (#4474)

This commit is contained in:
Raphael Michel
2024-09-25 17:55:33 +02:00
committed by GitHub
parent ff910f293f
commit 9bf4fb2d0f
3 changed files with 89 additions and 1 deletions

View File

@@ -429,6 +429,9 @@ class OrderSendView(BaseSenderView):
kwargs.update({
'recipients': form.cleaned_data['recipients'],
'items': [i.pk for i in form.cleaned_data.get('items')],
'subevent': form.cleaned_data['subevent'].pk if form.cleaned_data.get('subevent') else None,
'subevents_from': form.cleaned_data.get('subevents_from'),
'subevents_to': form.cleaned_data.get('subevents_to'),
'not_checked_in': form.cleaned_data.get('not_checked_in'),
'checkin_lists': [i.pk for i in form.cleaned_data.get('checkin_lists')],
'filter_checkins': form.cleaned_data.get('filter_checkins'),