diff --git a/src/pretix/static/pretixpresale/js/ui/main.js b/src/pretix/static/pretixpresale/js/ui/main.js index 90cefb3a79..d914fb4a13 100644 --- a/src/pretix/static/pretixpresale/js/ui/main.js +++ b/src/pretix/static/pretixpresale/js/ui/main.js @@ -388,13 +388,13 @@ $(function () { var source_label = get_label_text_for_id(source.id); var $first_ticket_form = $(".questions-form").first().find("[data-addonidx=0]"); - var $candidates = $first_ticket_form.find(source.tagName + ":not([type='checkbox'], [type='radio'])"); + var $candidates = $first_ticket_form.find(source.tagName + ":not([type='checkbox'], [type='radio'], [type='hidden'])"); var $match = $candidates.filter(function() { return ( this.id.endsWith(source.id.substring(3)) || (this.placeholder && this.placeholder === source.placeholder) || (this.placeholder && this.placeholder === source_label) - || (source_label && get_label_text_for_id(this.id) === source_label) + || (source_label && this.id && get_label_text_for_id(this.id) === source_label) ); }).first(); $match.val(this.value).trigger("change");