From 36c0acc57456710f4f57045a46f6327d1028e17f Mon Sep 17 00:00:00 2001 From: Phin Wolkwitz Date: Mon, 2 Jun 2025 18:41:47 +0200 Subject: [PATCH] Fix unavailable input options (Z#23194875) (#5178) * Fix unavailable input options * Fix it also for items with variations * Fix it also for items with variations --- .../templates/pretixpresale/event/fragment_addon_choice.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/fragment_addon_choice.html b/src/pretix/presale/templates/pretixpresale/event/fragment_addon_choice.html index e84f3c38e..fd9c11b61 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_addon_choice.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_addon_choice.html @@ -186,7 +186,7 @@ {% endif %} {% endif %} - {% if var.cached_availability.0 == 100 or var.initial %} + {% if not item.current_unavailability_reason and not var.current_unavailability_reason and var.cached_availability.0 == 100 or var.initial %}
{% if c.max_count == 1 or not c.multi_allowed %}
- {% if item.cached_availability.0 == 100 or item.initial %} + {% if not item.current_unavailability_reason and item.cached_availability.0 == 100 or item.initial %}
{% if c.max_count == 1 or not c.multi_allowed %}