Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/AuthoringUtil.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/AuthoringUtil.java,v diff -u -r1.32 -r1.33 --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/AuthoringUtil.java 3 Feb 2006 23:59:24 -0000 1.32 +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/AuthoringUtil.java 6 Feb 2006 21:31:29 -0000 1.33 @@ -1,6 +1,3 @@ -/* - * Created on 16/05/2005 - */ package org.lamsfoundation.lams.tool.mc.web; import java.io.FileNotFoundException; @@ -1636,7 +1633,7 @@ */ public static void cleanupRedundantOptions(HttpServletRequest request, Map mapStartupGeneralOptionsContent, Map mapStartupGeneralSelectedOptionsContent, Map mapGeneralOptionsContent, Map mapGeneralSelectedOptionsContent, Map mapStartupGeneralOptionsQueId) { - logger.debug("doing upRedundantOptions..."); + logger.debug("doing cleanupRedundantOptions..."); logger.debug("starting mapStartupGeneralOptionsContent...:" + mapStartupGeneralOptionsContent); logger.debug("using mapGeneralOptionsContent..: "+ mapGeneralOptionsContent); IMcService mcService =McUtils.getToolService(request); @@ -2156,9 +2153,11 @@ */ public static void refreshMaps(HttpServletRequest request, long toolContentId) { + logger.debug("refreshing maps.."); Map mapQuestionsUidContent=AuthoringUtil.rebuildQuestionUidMapfromDB(request, new Long(toolContentId)); logger.debug("mapQuestionsUidContent:" + mapQuestionsUidContent); + logger.debug("mapQuestionsUidContent size:" + mapQuestionsUidContent.size()); if (mapQuestionsUidContent.size() > 0) { Map mapStartupGeneralOptionsContent=AuthoringUtil.rebuildStartupGeneralOptionsContentMapfromDB(request, mapQuestionsUidContent); @@ -2177,6 +2176,24 @@ /** + * assignStaterMapsToCurrentMaps(HttpServletRequest request) + * @param request + */ + public static void assignStaterMapsToCurrentMaps(HttpServletRequest request) + { + logger.debug("assigning maps.."); + Map mapStartupGeneralOptionsContent=(Map)request.getSession().getAttribute(MAP_STARTUP_GENERAL_OPTIONS_CONTENT); + logger.debug("mapStartupGeneralOptionsContent: " + mapStartupGeneralOptionsContent); + + Map mapStartupGeneralSelectedOptionsContent=(Map) request.getSession().getAttribute(MAP_STARTUP_GENERAL_SELECTED_OPTIONS_CONTENT); + logger.debug("mapStartupGeneralSelectedOptionsContent: " + mapStartupGeneralSelectedOptionsContent); + + request.getSession().setAttribute(MAP_GENERAL_OPTIONS_CONTENT, mapStartupGeneralOptionsContent); + request.getSession().setAttribute(MAP_GENERAL_SELECTED_OPTIONS_CONTENT, mapStartupGeneralSelectedOptionsContent); + } + + + /** * * uploadFile(HttpServletRequest request, McAuthoringForm mcAuthoringForm, boolean isOfflineFile) throws RepositoryCheckedException *