Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/MonitoringService.java =================================================================== diff -u -r51c921dc0452b3fa53901837bf69e1ddbb4fd02a -r778247c607dc8d767ddbc3dff25d0a3505d00661 --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/MonitoringService.java (.../MonitoringService.java) (revision 51c921dc0452b3fa53901837bf69e1ddbb4fd02a) +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/MonitoringService.java (.../MonitoringService.java) (revision 778247c607dc8d767ddbc3dff25d0a3505d00661) @@ -1717,7 +1717,7 @@ FlashMessage flashMessage; GateActivity gate = (GateActivity) activityDAO.getActivityByActivityId(activityID); Lesson lesson = lessonDAO.getLesson(lessonID); // used to calculate the - // total learners. + // total learners. if (gate == null || lesson == null) { flashMessage = new FlashMessage("checkGateStatus", messageService.getMessage("INVALID.ACTIVITYID.LESSONID", @@ -2234,9 +2234,9 @@ + grouping + " we have been asked to add a group in excess of the max number of groups (probably via the Chosen Grouping screen)."); grouping.setMaxNumberOfGroups(null); // must be null and not - // 0 or the groups will - // be lost via Live - // Edit. + // 0 or the groups will + // be lost via Live + // Edit. } else { MonitoringService.log .error("Request made to add a group which would be more than the max number of groups for the grouping " @@ -2707,6 +2707,8 @@ staffGroupName + " " + i, staffList, creatorUserId); } else { // run out of lessons (shouldn't reach here) + log.error("Not enough lessons created for numLessons value of numLessons=" + numLessons + + " (got up to " + i + ")"); return false; } }