From 373ab2970193d809db5c11dcc5671c5ef90a938c Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 22 Feb 2019 15:41:56 +0100 Subject: [PATCH] Fix #1190 -- Voucher redemption: Default amount one if there is only one option --- src/pretix/presale/templates/pretixpresale/event/voucher.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pretix/presale/templates/pretixpresale/event/voucher.html b/src/pretix/presale/templates/pretixpresale/event/voucher.html index 4e56aa851..0dbd9535f 100644 --- a/src/pretix/presale/templates/pretixpresale/event/voucher.html +++ b/src/pretix/presale/templates/pretixpresale/event/voucher.html @@ -130,6 +130,7 @@ max="{{ item.order_max }}" id="variation_{{ item.id }}_{{ var.id }}" name="variation_{{ item.id }}_{{ var.id }}" + {% if options == 1 %}value="1"{% endif %} title="{% blocktrans with item=item.name var=var.name %}Amount of {{ item }} – {{ var }} to order{% endblocktrans %}"> {% else %}