Skip to content
Snippets Groups Projects
Commit 2c4bd28f authored by srosse's avatar srosse
Browse files

Merge branch 'OpenOLAT_15.1' of...

Merge branch 'OpenOLAT_15.1' of ssh://srosse@office.frentix.com/home/srosse/repositories/OpenOLAT.git into OpenOLAT_15.1
parents 9e0a9b6d 5adbf84d
No related branches found
No related tags found
No related merge requests found
...@@ -819,7 +819,10 @@ public class HelpModule extends AbstractSpringModule { ...@@ -819,7 +819,10 @@ public class HelpModule extends AbstractSpringModule {
String enabled = usertool ? USERTOOL : ""; String enabled = usertool ? USERTOOL : "";
enabled += authorsite ? DELIMITER + AUTHORSITE : ""; enabled += authorsite ? DELIMITER + AUTHORSITE : "";
enabled += login ? DELIMITER + DMZ : ""; enabled += login ? DELIMITER + DMZ : "";
// remove trailing delimiter
if (enabled.startsWith(DELIMITER)) {
enabled = enabled.substring(DELIMITER.length());
}
return enabled; return enabled;
} }
...@@ -892,7 +895,10 @@ public class HelpModule extends AbstractSpringModule { ...@@ -892,7 +895,10 @@ public class HelpModule extends AbstractSpringModule {
*/ */
private void addToHelpPlugins(String plugin) { private void addToHelpPlugins(String plugin) {
if (!helpPlugins.contains(plugin)) { if (!helpPlugins.contains(plugin)) {
helpPlugins += DELIMITER + plugin; if (helpPlugins.length() > 0) {
helpPlugins += DELIMITER;
}
helpPlugins += plugin;
setStringProperty("help.plugin", helpPlugins, true); setStringProperty("help.plugin", helpPlugins, true);
} }
} }
......
...@@ -30,6 +30,7 @@ import org.olat.basesecurity.BaseSecurity; ...@@ -30,6 +30,7 @@ import org.olat.basesecurity.BaseSecurity;
import org.olat.basesecurity.GroupRoles; import org.olat.basesecurity.GroupRoles;
import org.olat.basesecurity.IdentityRef; import org.olat.basesecurity.IdentityRef;
import org.olat.basesecurity.model.IdentityRefImpl; import org.olat.basesecurity.model.IdentityRefImpl;
import org.olat.core.commons.persistence.DB;
import org.olat.core.gui.control.Event; import org.olat.core.gui.control.Event;
import org.olat.core.id.Identity; import org.olat.core.id.Identity;
import org.olat.core.id.IdentityEnvironment; import org.olat.core.id.IdentityEnvironment;
...@@ -70,6 +71,8 @@ public class CourseMembershipProcessor implements GenericEventListener { ...@@ -70,6 +71,8 @@ public class CourseMembershipProcessor implements GenericEventListener {
private static final Logger log = Tracing.createLoggerFor(CourseMembershipProcessor.class); private static final Logger log = Tracing.createLoggerFor(CourseMembershipProcessor.class);
@Autowired
private DB dbInstance;
@Autowired @Autowired
private BaseSecurity securityManager; private BaseSecurity securityManager;
@Autowired @Autowired
...@@ -235,6 +238,7 @@ public class CourseMembershipProcessor implements GenericEventListener { ...@@ -235,6 +238,7 @@ public class CourseMembershipProcessor implements GenericEventListener {
UserCourseEnvironment userCourseEnv = new UserCourseEnvironmentImpl(identityEnv, courseEnv); UserCourseEnvironment userCourseEnv = new UserCourseEnvironmentImpl(identityEnv, courseEnv);
userCourseEnv.getScoreAccounting().evaluateAll(true); userCourseEnv.getScoreAccounting().evaluateAll(true);
log.debug("Evaluated all assessment entries of {} in {}", identity, courseEntry); log.debug("Evaluated all assessment entries of {} in {}", identity, courseEntry);
dbInstance.commitAndCloseSession();
} }
} }
...@@ -423,10 +423,10 @@ certificate.linemanager=false ...@@ -423,10 +423,10 @@ certificate.linemanager=false
# your own help plugin and configure it here. # your own help plugin and configure it here.
help.enabled=true help.enabled=true
# Define the plugin which generate the help URL # Define the plugin which generate the help URL
help.plugin=ooConfluenceLinkHelp,ooAcademyLinkHelp help.plugin=ooConfluenceLinkHelp,ooAcademyLinkHelp,ooTeachLinkHelp
help.plugin.values=ooConfluenceLinkHelp,ooAcademyLinkHelp,supportMailHelp,courseHelp,customLink1Help,customLink2Help help.plugin.values=ooConfluenceLinkHelp,ooAcademyLinkHelp,ooTeachLinkHelp,supportMailHelp,courseHelp,customLink1Help,customLink2Help,customLink3Help
# Note that when you use anything but ooConfluenceLinkHelp, the context help will be disabled. Only the help button in the top navigation will be available and open the help course # Note that when you use anything but ooConfluenceLinkHelp, the context help will be disabled. Only the help button in the top navigation will be available and open the help course
help.plugin.icon.values=o_icon_manual,o_icon_video,o_course_icon,o_icon_mail or any other icon help.plugin.icon.values=o_icon_manual,o_icon_video,o_icon_coach,o_course_icon,o_icon_mail or any other icon
# Settings for the ooConfluenceLinkHelp plugin # Settings for the ooConfluenceLinkHelp plugin
help.confluence.enabled=usertool,authorsite,dmz help.confluence.enabled=usertool,authorsite,dmz
...@@ -440,7 +440,7 @@ help.academy.icon=o_icon_video ...@@ -440,7 +440,7 @@ help.academy.icon=o_icon_video
# Settings for the ooTeachLinkHelp plugin # Settings for the ooTeachLinkHelp plugin
help.ooteach.link=https://www.openolat.com/openolat-teach/ help.ooteach.link=https://www.openolat.com/openolat-teach/
help.ooteach.enabled=authorsite help.ooteach.enabled=authorsite
help.ooteach.icon=o_icon_video help.ooteach.icon=o_icon_coach
# Settings for the supportMailHelp plugin # Settings for the supportMailHelp plugin
help.support.email=${supportemail} help.support.email=${supportemail}
......
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