mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fixed a bug with ordering free tickets
This commit is contained in:
@@ -23,7 +23,7 @@ class CheckoutView(CartMixin, View):
|
|||||||
if 'step' not in kwargs:
|
if 'step' not in kwargs:
|
||||||
return redirect(step.get_step_url())
|
return redirect(step.get_step_url())
|
||||||
is_selected = (step.identifier == kwargs.get('step', ''))
|
is_selected = (step.identifier == kwargs.get('step', ''))
|
||||||
if not is_selected and not step.is_completed(request, warn=not is_selected):
|
if "async_id" not in request.GET and not is_selected and not step.is_completed(request, warn=not is_selected):
|
||||||
return redirect(step.get_step_url())
|
return redirect(step.get_step_url())
|
||||||
if is_selected:
|
if is_selected:
|
||||||
if request.method.lower() in self.http_method_names:
|
if request.method.lower() in self.http_method_names:
|
||||||
|
|||||||
Reference in New Issue
Block a user