From c4277d8c9bbe1edde77d1b682cb05facc6a0fb9c Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Tue, 4 Jul 2023 08:23:46 +0200 Subject: [PATCH] fix(section): rename section impacts display of inner questions --- js/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/scripts.js b/js/scripts.js index 0cf0cf744..7c39d3b34 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -1043,7 +1043,7 @@ var plugin_formcreator = new function() { displayAjaxMessageAfterRedirect(); }).done(function (data) { var section = $('.plugin_formcreator_form_design[data-itemtype="PluginFormcreatorForm"] [data-itemtype="PluginFormcreatorSection"][data-id="' + sectionId + '"]'); - section.find('[data-field="name"]').replaceWith(data['name']); + section.find(' > [data-field="name"]').replaceWith(data['name']); that.resetTabs(); }).complete(function () { var myModal = form.closest('div.modal');