Order change: Do not crash on empty fee input (PRETIXEU-9B2)

This commit is contained in:
Raphael Michel
2023-11-09 14:15:27 +01:00
parent 25a83adc78
commit 22301f5429

View File

@@ -1891,7 +1891,7 @@ class OrderChange(OrderView):
ocm.cancel_fee(f)
continue
if f.form.cleaned_data['value'] != f.value:
if f.form.cleaned_data['value'] is not None and f.form.cleaned_data['value'] != f.value:
ocm.change_fee(f, f.form.cleaned_data['value'])
if f.form.cleaned_data['tax_rule'] and f.form.cleaned_data['tax_rule'] != f.tax_rule: