Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/Attic/QaResources.properties,v diff -u -r1.3 -r1.4 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaResources.properties 29 Jun 2005 06:12:00 -0000 1.3 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaResources.properties 1 Jul 2005 07:48:59 -0000 1.4 @@ -69,7 +69,8 @@ button.deleteLesson =Delete Lesson button.contributeLesson =Contribute -> Report button.forceComplete =Force Complete -error.synchInMonitor =The report is available only after all the students finish their activities
Some of the students has not completed the activity yet. Those students may be forced to complete. +error.synchInMonitor =The report is available only after all the students finish their activities.
+ Some of the students has not completed the activity yet. However, those students may be forced to complete. error.monitorReportTitle =The field "Monitor Report Title (Advanced)" is mandatory.
error.noStudentActivity =Sorry, the report can not be generated.
No student has attempted the activity yet. error.contentAndToolSession.notCompatible =Tool Activity Error! Can't continue. The content id and tool session(s) passed to the tool activity are not compatible with each other.
The Tool Activity expects that each of the passed tool sessions refer to the same passed content id. Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaMonitoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaMonitoringAction.java,v diff -u -r1.2 -r1.3 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaMonitoringAction.java 1 Jul 2005 04:53:48 -0000 1.2 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaMonitoringAction.java 1 Jul 2005 07:48:59 -0000 1.3 @@ -269,6 +269,14 @@ } logger.debug(logger + " " + this.getClass().getName() + "SELECTION_CASE: " + SELECTION_CASE); + boolean useSelectedToolSessionId=false; + String selectedToolSessionId = (String) request.getSession().getAttribute(CURRENT_MONITORED_TOOL_SESSION); + if ((selectedToolSessionId != null) && (SELECTION_CASE == 3) && (READABLE_TOOL_SESSION_COUNT.intValue() == 2)) + { + useSelectedToolSessionId=true; + } + + if ((qaMonitoringForm.getEditReport() == null) && (qaMonitoringForm.getUpdateReport() == null)) { logger.debug(logger + " " + this.getClass().getName() + "no editReport or updateReport selected"); @@ -323,7 +331,17 @@ for (int toolSessionIdCounter=1; toolSessionIdCounter < READABLE_TOOL_SESSION_COUNT.intValue(); toolSessionIdCounter++) { logger.debug(logger + " " + this.getClass().getName() + "toolSessionIdCounter: " + toolSessionIdCounter); - String strToolSessionId=(String) originalSessionList.get(""+toolSessionIdCounter); + String strToolSessionId=""; + if (useSelectedToolSessionId) + { + strToolSessionId=(String) request.getSession().getAttribute(CURRENT_MONITORED_TOOL_SESSION); + logger.debug(logger + " " + this.getClass().getName() + "using strToolSessionId: " +strToolSessionId); + } + else + { + strToolSessionId=(String) originalSessionList.get(""+toolSessionIdCounter); + logger.debug(logger + " " + this.getClass().getName() + "using strToolSessionId from the session: "); + } logger.debug(logger + " " + this.getClass().getName() + "original strToolSessionId: " + strToolSessionId); String strRetrievableToolSessionId="";