mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Widget: Do not preset item quantity to 1 if there is only one item but an active seating plan
This commit is contained in:
@@ -219,7 +219,7 @@ Vue.component('availbox', {
|
|||||||
this.$set(this.variation, 'amount_selected', 0);
|
this.$set(this.variation, 'amount_selected', 0);
|
||||||
} else {
|
} else {
|
||||||
// Automatically set the only available item to be selected.
|
// 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')
|
this.$root.$emit('amounts_changed')
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user