mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Fix a bug leading to loss of answers for addon-related questions
This commit is contained in:
@@ -769,6 +769,9 @@ class OrderPosition(AbstractPosition):
|
||||
'order_code': order.code
|
||||
})
|
||||
|
||||
# Delete afterwards. Deleting in between might cause deletion of things related to add-ons
|
||||
# due to the deletion cascade.
|
||||
for cartpos in cp:
|
||||
cartpos.delete()
|
||||
return ops
|
||||
|
||||
|
||||
Reference in New Issue
Block a user