[IMP] survey_event_registration_generation:

New type of question : multiple event products
This commit is contained in:
clementthomas
2023-10-24 10:57:55 +02:00
parent d5a834f3c9
commit 2690d69696
6 changed files with 85 additions and 30 deletions

View File

@@ -18,7 +18,13 @@ SurveyFormWidget.include({
this.$('[data-question-type]').each(function () {
if (['event','event_product'].includes($(this).data('questionType'))) {
params[this.name] = this.value;
}
} else if ($(this).data('questionType') == 'multiple_event_products') {
$(this).find('input:checked').each(function () {
if (this.value !== '-1') {
params = self._prepareSubmitAnswer(params, this.name, this.value);
}
});
}
});
return result;