Skip to content

Commit

Permalink
Fix crash in item form validation
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Jan 19, 2024
1 parent 4234a64 commit 081d3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pretix/control/forms/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def clean(self):
if d.get('grant_membership_type'):
if not d['grant_membership_type'].transferable and not d['personalized']:
self.add_error(
'personalized' if d['admission'] else 'admission',
'personalized' if d.get('admission') else 'admission',
_("Your product grants a non-transferable membership and should therefore be a personalized "
"admission ticket. Otherwise customers might not be able to use the membership later. If you "
"want the membership to be non-personalized, set the membership type to be transferable.")
Expand Down

0 comments on commit 081d3a7

Please sign in to comment.