diff --git a/src/pretix/presale/templates/pretixpresale/event/checkout_questions.html b/src/pretix/presale/templates/pretixpresale/event/checkout_questions.html index 3646b67bb..47f019338 100644 --- a/src/pretix/presale/templates/pretixpresale/event/checkout_questions.html +++ b/src/pretix/presale/templates/pretixpresale/event/checkout_questions.html @@ -50,7 +50,7 @@
@@ -160,7 +160,7 @@ {% endif %}
diff --git a/src/pretix/static/pretixpresale/js/ui/main.js b/src/pretix/static/pretixpresale/js/ui/main.js index e6ee82b2b..dc12feb96 100644 --- a/src/pretix/static/pretixpresale/js/ui/main.js +++ b/src/pretix/static/pretixpresale/js/ui/main.js @@ -481,10 +481,12 @@ $(function () { function copy_answers(elements, answers) { elements.not("[disabled], [readonly]").each(function (index) { + if (!this.name) return; var input = $(this), tagName = input.prop('tagName').toLowerCase(), attributeType = input.attr('type'), suffix = input.attr('name').split('-')[1]; + if (input.closest(".js-do-not-copy-answers").length) return; switch (tagName) { case "textarea": diff --git a/src/pretix/static/pretixpresale/js/ui/questions.js b/src/pretix/static/pretixpresale/js/ui/questions.js index 69f507a87..a8d645bd5 100644 --- a/src/pretix/static/pretixpresale/js/ui/questions.js +++ b/src/pretix/static/pretixpresale/js/ui/questions.js @@ -341,7 +341,7 @@ function questions_init_profiles(el) { var $checkboxContainer = $checkbox.closest(".form-group").addClass("profile-save"); var $help = $selectContainer.find(".help-block"); - var $container = $("
"); + var $container = $(""); $selectContainer.after($container); $container.append($checkboxContainer); $container.append($selectContainer);