From 2cfffe652658d0060534af0fb3782320c4ae7d2a Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 25 Oct 2022 11:55:21 +0200 Subject: [PATCH] Fix edge case in item add-on formset validation --- src/pretix/control/forms/item.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/pretix/control/forms/item.py b/src/pretix/control/forms/item.py index 6bd53a0c83..24b6283466 100644 --- a/src/pretix/control/forms/item.py +++ b/src/pretix/control/forms/item.py @@ -768,10 +768,6 @@ class ItemAddOnsFormSet(I18nFormSet): if self._should_delete_form(form): # This form is going to be deleted so any of its errors # should not cause the entire formset to be invalid. - try: - categories.remove(form.cleaned_data['addon_category'].pk) - except KeyError: - pass continue if 'addon_category' in form.cleaned_data: