Do not treat event as free if there are mandatory non-free addons (#3646)

This commit is contained in:
Raphael Michel
2023-10-16 12:35:20 +02:00
committed by GitHub
parent 43d26451d1
commit abda800953
3 changed files with 7 additions and 5 deletions

View File

@@ -1020,7 +1020,7 @@ Vue.component('pretix-widget-event-form', {
break;
}
}
if (item.variations.length === 0 && item.price.gross !== "0.00") {
if ((item.variations.length === 0 && item.price.gross !== "0.00") || item.mandatory_priced_addons) {
all_free = false;
break;
}