mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Fix voucher redemption problem with subevents
This commit is contained in:
@@ -304,7 +304,7 @@ class RedeemView(EventViewMixin, TemplateView):
|
||||
|
||||
self.subevent = None
|
||||
if request.event.has_subevents:
|
||||
if 'subevent' in request.GET:
|
||||
if request.GET.get('subevent'):
|
||||
self.subevent = get_object_or_404(SubEvent, event=request.event, pk=request.GET.get('subevent'),
|
||||
active=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user