mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-21 19:23:48 +01:00
Fix property lazy initialization error.
This commit is contained in:
parent
15325672a0
commit
19d083e218
@ -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";
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
<script type="text/javascript">
|
||||
var mapId = '${mindmap.id}';
|
||||
var historyId = '${hid}';
|
||||
var userOptions = ${mindmap.properties};
|
||||
var userOptions = ${properties};
|
||||
var locale = '${locale}';
|
||||
var isAuth = ${principal != null};
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user