From 86ab9f72a5f572a30937a0a1a3667807c74e1aa9 Mon Sep 17 00:00:00 2001 From: garronej Date: Sun, 12 Dec 2021 19:34:50 +0100 Subject: [PATCH] Ftl prevent error with updateProfileCtx --- .../ftl_object_to_js_code_declaring_an_object.ftl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/bin/build-keycloak-theme/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl b/src/bin/build-keycloak-theme/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl index c2cb7df2..0e138985 100644 --- a/src/bin/build-keycloak-theme/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl +++ b/src/bin/build-keycloak-theme/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl @@ -111,9 +111,15 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc}; <#continue> + <#-- Skip values that are known to throw sometime and that are used nowhere in the base Keycloak template --> <#if - ["loginUpdatePasswordUrl", "loginUpdateProfileUrl", "loginUsernameReminderUrl", "loginUpdateTotpUrl"]?seq_contains(key) && - are_same_path(path, ["url"]) + ( + ["loginUpdatePasswordUrl", "loginUpdateProfileUrl", "loginUsernameReminderUrl", "loginUpdateTotpUrl"]?seq_contains(key) && + are_same_path(path, ["url"]) + ) || ( + key == "updateProfileCtx" && + are_same_path(path, []) + ) > <#local out_seq += ["/*If you need '" + key + "' please submit an issue to the Keycloakify repo*/"]> <#continue>