Index: lams_learning/src/java/org/lamsfoundation/lams/learning/web/action/ActivityAction.java =================================================================== diff -u -r5aff7aa069793bc34e60b304e69e9e9fceb996f5 -r0737cfe898d26d4143b69f182344b713c7f36158 --- lams_learning/src/java/org/lamsfoundation/lams/learning/web/action/ActivityAction.java (.../ActivityAction.java) (revision 5aff7aa069793bc34e60b304e69e9e9fceb996f5) +++ lams_learning/src/java/org/lamsfoundation/lams/learning/web/action/ActivityAction.java (.../ActivityAction.java) (revision 0737cfe898d26d4143b69f182344b713c7f36158) @@ -37,6 +37,7 @@ import org.lamsfoundation.lams.learning.web.util.LearningWebUtil; import org.lamsfoundation.lams.learningdesign.Activity; import org.lamsfoundation.lams.lesson.LearnerProgress; +import org.lamsfoundation.lams.lesson.Lesson; import org.lamsfoundation.lams.web.action.LamsAction; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; @@ -109,10 +110,15 @@ StringBuffer progressSummary = new StringBuffer(100); if ( learnerProgress == null ) { progressSummary.append("attempted=&completed=¤t="); + progressSummary.append("&lessonID="); + Lesson currentLesson = learnerProgress.getLesson(); + if(currentLesson != null){ + progressSummary.append(currentLesson.getLessonId()); + } } else { progressSummary.append("attempted="); boolean first = true; - for ( Object obj : learnerProgress.getAttemptedActivities() ) { + for (Object obj : learnerProgress.getAttemptedActivities()) { Activity activity = (Activity ) obj; if ( ! first ) { progressSummary.append("_"); @@ -139,6 +145,12 @@ if ( currentActivity != null ) { progressSummary.append(currentActivity.getActivityId()); } + + progressSummary.append("&lessonID="); + Lesson currentLesson = learnerProgress.getLesson(); + if(currentLesson != null){ + progressSummary.append(currentLesson.getLessonId()); + } } return progressSummary.toString(); }