diff --git a/src/main/java/org/olat/modules/portfolio/ui/AbstractPageListController.java b/src/main/java/org/olat/modules/portfolio/ui/AbstractPageListController.java index 0c4b5c08fcc8c66e755cbce9e6f7b3631b64dbb3..f00c06a7b961f85d6154bea079fe8ca93ab642ac 100644 --- a/src/main/java/org/olat/modules/portfolio/ui/AbstractPageListController.java +++ b/src/main/java/org/olat/modules/portfolio/ui/AbstractPageListController.java @@ -737,7 +737,7 @@ implements Activateable2, TooledController, FlexiTableComponentDelegate { timelineSwitchOffButton.setVisible(false); flc.contextPut("timelineSwitch", Boolean.TRUE); if(savePreferences) { - ureq.getUserSession().getGuiPreferences().put(this.getClass(), getTimelineSwitchPreferencesName(), "on"); + ureq.getUserSession().getGuiPreferences().putAndSave(this.getClass(), getTimelineSwitchPreferencesName(), "on"); } } @@ -746,7 +746,7 @@ implements Activateable2, TooledController, FlexiTableComponentDelegate { timelineSwitchOffButton.setVisible(true); flc.contextPut("timelineSwitch", Boolean.FALSE); if(savePreferences) { - ureq.getUserSession().getGuiPreferences().put(this.getClass(), getTimelineSwitchPreferencesName(), "off"); + ureq.getUserSession().getGuiPreferences().putAndSave(this.getClass(), getTimelineSwitchPreferencesName(), "off"); } }