mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fix #1190 -- Voucher redemption: Default amount one if there is only one option
This commit is contained in:
@@ -130,6 +130,7 @@
|
|||||||
max="{{ item.order_max }}"
|
max="{{ item.order_max }}"
|
||||||
id="variation_{{ item.id }}_{{ var.id }}"
|
id="variation_{{ item.id }}_{{ var.id }}"
|
||||||
name="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 %}">
|
title="{% blocktrans with item=item.name var=var.name %}Amount of {{ item }} – {{ var }} to order{% endblocktrans %}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<label>
|
<label>
|
||||||
@@ -207,6 +208,7 @@
|
|||||||
max="{{ item.order_max }}"
|
max="{{ item.order_max }}"
|
||||||
id="item_{{ item.id }}"
|
id="item_{{ item.id }}"
|
||||||
name="item_{{ item.id }}"
|
name="item_{{ item.id }}"
|
||||||
|
{% if options == 1 %}value="1"{% endif %}
|
||||||
title="{% blocktrans with item=item.name %}Amount of {{ item }} to order{% endblocktrans %}">
|
title="{% blocktrans with item=item.name %}Amount of {{ item }} to order{% endblocktrans %}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<label>
|
<label>
|
||||||
|
|||||||
Reference in New Issue
Block a user