Index: lams_learning/src/java/org/lamsfoundation/lams/learning/web/action/ActivityAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_learning/src/java/org/lamsfoundation/lams/learning/web/action/ActivityAction.java,v diff -u -r1.20 -r1.21 --- lams_learning/src/java/org/lamsfoundation/lams/learning/web/action/ActivityAction.java 11 Jun 2006 02:48:35 -0000 1.20 +++ lams_learning/src/java/org/lamsfoundation/lams/learning/web/action/ActivityAction.java 16 Jun 2006 01:34:21 -0000 1.21 @@ -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(); }