Index: lams_central/src/java/org/lamsfoundation/lams/web/HomeController.java =================================================================== diff -u -r9091ed8c9bae9a48f88622c0c5031af2a39772dc -r6b88a4603f388f153ff4188ff6e1183e172ccde9 --- lams_central/src/java/org/lamsfoundation/lams/web/HomeController.java (.../HomeController.java) (revision 9091ed8c9bae9a48f88622c0c5031af2a39772dc) +++ lams_central/src/java/org/lamsfoundation/lams/web/HomeController.java (.../HomeController.java) (revision 6b88a4603f388f153ff4188ff6e1183e172ccde9) @@ -71,7 +71,6 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.context.WebApplicationContext; import com.fasterxml.jackson.databind.node.JsonNodeFactory; import com.fasterxml.jackson.databind.node.ObjectNode; @@ -98,8 +97,6 @@ @Autowired private ISecurityService securityService; @Autowired - private WebApplicationContext applicationcontext; - @Autowired private ILogEventService logEventService; /** @@ -188,6 +185,11 @@ return "lessonIntro"; } + if (lesson.getForceLearnerRestart()) { + // start the lesson from the beginning each time + lessonService.removeLearnerProgress(lessonId, user.getUserID()); + } + if (mode != null) { req.setAttribute(AttributeNames.PARAM_MODE, mode); }