From a2414081afc86e826bc864cb3e710f65b5019201 Mon Sep 17 00:00:00 2001 From: Martin Gross Date: Thu, 13 Aug 2020 11:21:24 +0200 Subject: [PATCH] Widget: Do not preset item quantity to 1 if there is only one item but an active seating plan --- src/pretix/static/pretixpresale/js/widget/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index 3eada6e17..1e1d5280b 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -219,7 +219,7 @@ Vue.component('availbox', { this.$set(this.variation, 'amount_selected', 0); } else { // Automatically set the only available item to be selected. - this.$set(this.item, 'amount_selected', this.$root.itemnum === 1 ? 1 : 0); + this.$set(this.item, 'amount_selected', this.$root.itemnum === 1 && !this.$root.has_seating_plan ? 1 : 0); } this.$root.$emit('amounts_changed') },