mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Add safeguards and tests against duplicate cancellations
This commit is contained in:
@@ -156,7 +156,7 @@ def mark_order_expired(order, user=None, auth=None):
|
||||
|
||||
order.log_action('pretix.event.order.expired', user=user, auth=auth)
|
||||
i = order.invoices.filter(is_cancellation=False).last()
|
||||
if i:
|
||||
if i and not i.refered.exists():
|
||||
generate_cancellation(i)
|
||||
|
||||
order_expired.send(order.event, order=order)
|
||||
|
||||
Reference in New Issue
Block a user