Reset to the first stage when restarting the lesson

git-svn-id: http://webgoat.googlecode.com/svn/trunk@166 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
rogan.dawes 2007-07-11 12:53:51 +00:00
parent 7dee412ee1
commit d889f6e535

View File

@ -54,6 +54,7 @@ public class RandomLessonTracker extends LessonTracker {
throw new UnsupportedOperationException("Use individual stage completion instead");
for (int i=0;i<stages.length; i++)
setStageComplete(stages[i], false);
setStage(stages[0]);
}
protected void setProperties(Properties props, Screen screen) {