From 19d083e2182bb2890650c730d91d7a8e4c517c91 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 4 Dec 2023 20:29:19 -0800 Subject: [PATCH] Fix property lazy initialization error. --- .../main/java/com/wisemapping/webmvc/MvcMindmapController.java | 3 ++- wise-webapp/src/main/webapp/WEB-INF/views/mindmapViewonly.jsp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/webmvc/MvcMindmapController.java b/wise-webapp/src/main/java/com/wisemapping/webmvc/MvcMindmapController.java index bfca1266..96cd1dbb 100644 --- a/wise-webapp/src/main/java/com/wisemapping/webmvc/MvcMindmapController.java +++ b/wise-webapp/src/main/java/com/wisemapping/webmvc/MvcMindmapController.java @@ -56,7 +56,7 @@ public class MvcMindmapController { private MindmapService mindmapService; @RequestMapping(value = "maps/{id}/print") - public String showPrintPage(@PathVariable int id, @NotNull Model model) throws MapCouldNotFoundException, AccessDeniedSecurityException { + public String showPrintPage(@PathVariable int id, @NotNull Model model) throws WiseMappingException { final MindMapBean mindmap = findMindmapBean(id); model.addAttribute("principal", Utils.getUser()); @@ -64,6 +64,7 @@ public class MvcMindmapController { model.addAttribute("creatorFullName", mindmap.getCreator().getFullName()); final Locale locale = LocaleContextHolder.getLocale(); model.addAttribute("locale", locale.toString().toLowerCase()); + model.addAttribute("properties", mindmap.getProperties()); return "mindmapViewonly"; } diff --git a/wise-webapp/src/main/webapp/WEB-INF/views/mindmapViewonly.jsp b/wise-webapp/src/main/webapp/WEB-INF/views/mindmapViewonly.jsp index 78210adf..c305a030 100644 --- a/wise-webapp/src/main/webapp/WEB-INF/views/mindmapViewonly.jsp +++ b/wise-webapp/src/main/webapp/WEB-INF/views/mindmapViewonly.jsp @@ -24,7 +24,7 @@