From e9e4a8272b70acad005860ad120c949062e0d827 Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Thu, 16 May 2024 13:48:40 +0100 Subject: [PATCH] fix: Fix Page with link creation - MEED-6870 - Meeds-io/meeds#1994 (#62) Prior to this change, the page link creation sends an HTTP 400 error due to having a boolean (false) instead of a long (0). This change ensures to use '0' systematically when the attribute 'pageTemplateId' is falsy. --- .../vue-app/common-layout-components/js/PageLayoutService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout-webapp/src/main/webapp/vue-app/common-layout-components/js/PageLayoutService.js b/layout-webapp/src/main/webapp/vue-app/common-layout-components/js/PageLayoutService.js index 9905d944a..c10620f9b 100644 --- a/layout-webapp/src/main/webapp/vue-app/common-layout-components/js/PageLayoutService.js +++ b/layout-webapp/src/main/webapp/vue-app/common-layout-components/js/PageLayoutService.js @@ -69,7 +69,7 @@ export function createPage(pageName, pageTitle, pageSiteName, pageSiteType, page }, body: JSON.stringify({ pageName, - pageTemplateId, + pageTemplateId: pageTemplateId || 0, pageType, pageTitle, pageSiteType,