changing to 'id' for linking in YmlBasedLesson

This commit is contained in:
Jason White
2016-07-05 08:22:37 -04:00
parent d27712affa
commit 8e862ba9c3
4 changed files with 13 additions and 12 deletions

View File

@ -88,7 +88,7 @@ public class StartLesson {
List<AbstractLesson> lessons = ws.getCourse()
.getLessons(ws, AbstractLesson.USER_ROLE);//TODO this should work with the security roles of Spring
Optional<AbstractLesson> lesson = lessons.stream()
.filter(l -> l.getHtml().equals(lessonName))
.filter(l -> l.getId().equals(lessonName))
.findFirst();
model.setViewName("lesson_content");
model.addObject("lesson", lesson.get());