Skip to content
Snippets Groups Projects
Commit 24b991d8 authored by srosse's avatar srosse
Browse files

OO-3048: don't override the default configuration of user tools by enabling the lectures module

parent 1802e2f9
No related branches found
No related tags found
No related merge requests found
...@@ -362,16 +362,18 @@ public class LectureSettingsAdminController extends FormBasicController { ...@@ -362,16 +362,18 @@ public class LectureSettingsAdminController extends FormBasicController {
//enabled user tool //enabled user tool
Set<String> availableTools = userToolsModule.getAvailableUserToolSet(); Set<String> availableTools = userToolsModule.getAvailableUserToolSet();
if(!availableTools.contains("org.olat.home.HomeMainController:org.olat.modules.lecture.ui.LecturesToolController")) { if(availableTools.size() > 0) {
availableTools.add("org.olat.home.HomeMainController:org.olat.modules.lecture.ui.LecturesToolController"); if(!availableTools.contains("org.olat.home.HomeMainController:org.olat.modules.lecture.ui.LecturesToolController")) {
} availableTools.add("org.olat.home.HomeMainController:org.olat.modules.lecture.ui.LecturesToolController");
}
StringBuilder aTools = new StringBuilder();
for(String selectedKey:availableTools) { StringBuilder aTools = new StringBuilder();
if(aTools.length() > 0) aTools.append(","); for(String selectedKey:availableTools) {
aTools.append(selectedKey); if(aTools.length() > 0) aTools.append(",");
aTools.append(selectedKey);
}
userToolsModule.setAvailableUserTools(aTools.toString());
} }
userToolsModule.setAvailableUserTools(aTools.toString());
lectureModule.setRollCallDefaultEnabled(rollCallEnableEl.isAtLeastSelected(1)); lectureModule.setRollCallDefaultEnabled(rollCallEnableEl.isAtLeastSelected(1));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment