From 6bbdc0a7f096e825830df4ab6f2eeb3f7404635e Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Wed, 25 Sep 2024 11:29:26 +0200 Subject: [PATCH] Fix non-working edit button for nested configurations (Regression from version 1.16.2) (#45) --- .../io.wcm.caconfig.editor/js/editor/editor.module.js | 2 +- changes.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bundle/src/main/webapp/app-root/clientlibs/io.wcm.caconfig.editor/js/editor/editor.module.js b/bundle/src/main/webapp/app-root/clientlibs/io.wcm.caconfig.editor/js/editor/editor.module.js index 2fb326f..d81c6ba 100644 --- a/bundle/src/main/webapp/app-root/clientlibs/io.wcm.caconfig.editor/js/editor/editor.module.js +++ b/bundle/src/main/webapp/app-root/clientlibs/io.wcm.caconfig.editor/js/editor/editor.module.js @@ -60,7 +60,7 @@ const currentController = current?.$$route?.controller; const currentConfigName = current?.pathParams?.configName; const nextController = next?.$$route?.controller; - const nextConfigName = current?.pathParams?.configName; + const nextConfigName = next?.pathParams?.configName; return currentController !== undefined && currentController === nextController && currentConfigName === nextConfigName; } diff --git a/changes.xml b/changes.xml index 24533a0..85b08af 100644 --- a/changes.xml +++ b/changes.xml @@ -27,6 +27,9 @@ Textarea widget: Apply custom number of rows also in readonly/disabled state. + + Fix non-working edit button for nested configurations (Regression from version 1.16.2). +