diff --git a/src/Resources/public/dynamic-page-components.js b/src/Resources/public/dynamic-page-components.js index 9ffde5f..1c0aa2b 100644 --- a/src/Resources/public/dynamic-page-components.js +++ b/src/Resources/public/dynamic-page-components.js @@ -29,6 +29,8 @@ $('body').on('change', '.page-component-name-select', function (event) { html = html.replaceAll('id="page_component_', 'id="' + idPrefix + '_'); html = html.replaceAll('name="page_component', 'name="' + namePrefix); html = html.replaceAll('id="page_component_', 'id="' + idPrefix + '_'); + html = html.replaceAll('name="page_component', 'name="' + namePrefix); + html = html.replaceAll('id="page_component_', 'id="' + idPrefix + '_'); $('.data-loader').remove(); $parentNode.append(html); $select.prop('disabled', false);