Fix #1190 -- Voucher redemption: Default amount one if there is only one option

This commit is contained in:
Raphael Michel
2019-02-22 15:41:56 +01:00
parent 7302bba602
commit 373ab29701

View File

@@ -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 %}
<label>
@@ -207,6 +208,7 @@
max="{{ item.order_max }}"
id="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 %}">
{% else %}
<label>