Merge remote-tracking branch 'origin/delete_conditional_questions' into 2025.9-test

This commit is contained in:
yflory 2025-09-30 10:48:11 +02:00
commit bd06f1ff7d

View File

@ -3448,6 +3448,11 @@ define([
};
};
var removeQuestion = function (content, uid) {
if (content.form[uid].type === 'section') {
content.form[uid].opts.questions.forEach(function(subQuestionUid) {
delete content.form[subQuestionUid];
})
}
delete content.form[uid];
var idx = content.order.indexOf(uid);
if (idx !== -1) {