Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/MonitoringService.java =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/MonitoringService.java,v diff -u -r1.195.2.39 -r1.195.2.40 --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/MonitoringService.java 15 Feb 2017 05:06:28 -0000 1.195.2.39 +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/MonitoringService.java 2 Mar 2017 10:33:31 -0000 1.195.2.40 @@ -1130,7 +1130,7 @@ } } else { // if group already exist - learnerService.completeActivity(learner.getUserId(), activity, lessonId); + learnerService.completeActivity(learner.getUserId(), activity, progress.getLearnerProgressId()); if (MonitoringService.log.isDebugEnabled()) { MonitoringService.log .debug("Grouping activity [" + activity.getActivityId() + "] is completed."); @@ -1142,7 +1142,7 @@ GateActivityDTO dto = learnerService.knockGate(gate, learner, false); if (dto.getAllowToPass()) { // the gate is opened, continue to next activity to complete - learnerService.completeActivity(learner.getUserId(), activity, lessonId); + learnerService.completeActivity(learner.getUserId(), activity, progress.getLearnerProgressId()); if (MonitoringService.log.isDebugEnabled()) { MonitoringService.log.debug("Gate activity [" + gate.getActivityId() + "] is completed."); } @@ -1174,7 +1174,7 @@ learnerService.completeToolSession(toolSession.getToolSessionId(), new Long(learner.getUserId().longValue())); - learnerService.completeActivity(learner.getUserId(), activity, lessonId); + learnerService.completeActivity(learner.getUserId(), activity, progress.getLearnerProgressId()); if (MonitoringService.log.isDebugEnabled()) { MonitoringService.log.debug("Tool activity [" + activity.getActivityId() + "] is completed."); } @@ -1187,7 +1187,7 @@ // branches are marked as done. // Ditto the two types of optional activities. // Then if the user goes back to them, they will operate normally. - learnerService.completeActivity(learner.getUserId(), activity, lessonId); + learnerService.completeActivity(learner.getUserId(), activity, progress.getLearnerProgressId()); } else if (activity.isComplexActivity()) { // expect it to be a parallel activity