From 31469534d63dd43c9641c9c2660d8955794f9417 Mon Sep 17 00:00:00 2001 From: Dariusz Szut Date: Mon, 24 Jan 2022 11:08:02 +0100 Subject: [PATCH] IBX-2029: Fixed error in content type edit validation (#222) --- src/bundle/Resources/public/js/scripts/admin.content.edit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bundle/Resources/public/js/scripts/admin.content.edit.js b/src/bundle/Resources/public/js/scripts/admin.content.edit.js index d51d28b0b1..51015c97de 100644 --- a/src/bundle/Resources/public/js/scripts/admin.content.edit.js +++ b/src/bundle/Resources/public/js/scripts/admin.content.edit.js @@ -62,7 +62,7 @@ if (invalidSection) { const { anchorSectionId } = invalidSection.dataset; - const invalidButton = doc.querySelector(`[data-anchor-target-section="${anchorSectionId}"`); + const invalidButton = doc.querySelector(`[data-anchor-target-section-id="${anchorSectionId}"`); invalidButton.click(); } @@ -116,7 +116,7 @@ invalidSections.forEach((sections) => { sections.forEach((invalidSectionId) => { - doc.querySelector(`[data-anchor-target-section='${invalidSectionId}']`).classList.add( + doc.querySelector(`[data-anchor-target-section-id='${invalidSectionId}']`).classList.add( 'ibexa-anchor-navigation-menu__btn--invalid' ); });