Added a lesson restart for lesson specific restart actions

This commit is contained in:
mayhew64
2015-09-18 15:46:39 -04:00
parent ff0d5af9d2
commit 5788fe7afe
3 changed files with 15 additions and 0 deletions

View File

@ -1126,6 +1126,7 @@ public class WebSession {
public void restartLesson(int lessonId) {
AbstractLesson al = getLesson(lessonId);
System.out.println("Restarting lesson: " + al);
al.restartLesson();
al.getLessonTracker(this).setCompleted(false);
if (al instanceof SequentialLessonAdapter) {
SequentialLessonAdapter sla = (SequentialLessonAdapter) al;