();
+ activities.addAll(learnerProgress.getAttemptedActivities().keySet());
+ activities.addAll(learnerProgress.getCompletedActivities().keySet());
+ boolean resetReadOnly = true;
+ for (Activity activity : activities) {
+ resetReadOnly = removeLearnerContent(activity, learner, resetReadOnly);
+ }
+ }
+
+ @Override
public Long cloneLesson(Long lessonId, Integer creatorId, Boolean addAllStaff, Boolean addAllLearners,
String[] staffIds, String[] learnerIds, Organisation group) throws MonitoringServiceException {
Lesson newLesson = null;
Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java
===================================================================
diff -u -r75765d2caf035efe57e40cad41337756253d488f -r8daec7e047f7ea8404c6f16218b63a8e855a15b2
--- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java (.../MonitoringAction.java) (revision 75765d2caf035efe57e40cad41337756253d488f)
+++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java (.../MonitoringAction.java) (revision 8daec7e047f7ea8404c6f16218b63a8e855a15b2)
@@ -210,7 +210,7 @@
* The Struts dispatch method that starts a lesson that has been created beforehand. Most likely, the request to
* start lesson should be triggered by the Monitoring This method will delegate to the Spring service bean to
* complete all the steps for starting a lesson.
- *
+ *
* @throws IOException
* @throws ServletException
*/
@@ -419,7 +419,7 @@
/**
* The Struts dispatch method to archive a lesson.
- *
+ *
* @throws IOException
* @throws ServletException
*/
@@ -432,13 +432,13 @@
} catch (SecurityException e) {
response.sendError(HttpServletResponse.SC_FORBIDDEN, "User is not a monitor in the lesson");
}
-
+
return null;
}
/**
* The Struts dispatch method to "unarchive" a lesson. Returns it back to its previous state.
- *
+ *
* @throws IOException
* @throws ServletException
*/
@@ -508,7 +508,7 @@
*
* This action need a lession ID as input.
*
- *
+ *
* @throws IOException
* @throws ServletException
*/
@@ -1144,7 +1144,7 @@
String monitorUrl = getMonitoringService().getActivityMonitorURL(lessonId, activityId, contentFolderId,
monitorUserId);
- if (monitorUrl != null && ! activity.isBranchingActivity()) {
+ if (monitorUrl != null && !activity.isBranchingActivity()) {
// whole activity monitor URL
activityJSON.put("url", monitorUrl);
}