This commit is contained in:
Zuzanna 2025-10-02 15:50:33 +02:00
parent 8fae26b0da
commit df352ed54d

View File

@ -3865,13 +3865,7 @@ define([
var idx = content.order.indexOf(uid);
if (!full) {
if (inSection) {
if (content.form[uid].type === 'section') {
var section = content.form[uid];
} else {
var $el = $container.find(`[data-id="${uid}"]`);
var sectionUid = $el.parents('.cp-form-block').attr('data-id');
var section = content.form[sectionUid];
}
var section = content.form[uid];
section.opts = section.opts || STATIC_TYPES.section.opts;
arr = section.opts.questions;
} else {