Index: lams_central/src/java/org/lamsfoundation/lams/authoring/ObjectExtractor.java =================================================================== diff -u -rb3dbc137e110d79b6aae154a808b7ca6e7de403d -r459fd5b7bac7f3333aa6beb51b1829128ac492b6 --- lams_central/src/java/org/lamsfoundation/lams/authoring/ObjectExtractor.java (.../ObjectExtractor.java) (revision b3dbc137e110d79b6aae154a808b7ca6e7de403d) +++ lams_central/src/java/org/lamsfoundation/lams/authoring/ObjectExtractor.java (.../ObjectExtractor.java) (revision 459fd5b7bac7f3333aa6beb51b1829128ac492b6) @@ -101,9 +101,15 @@ } public LearningDesign extractLearningDesign(Hashtable table) throws WDDXProcessorConversionException, ObjectExtractorException { - // get the core learning design stuff - LearningDesign learningDesign = new LearningDesign(); - + LearningDesign learningDesign = null; + + Long learningDesignId = WDDXProcessor.convertToLong(table, "learningDesignID"); + //if the learningDesignID is not null, load the existing LearningDesign object from the database, otherwise create a new one. + learningDesign = learningDesignId!= null ? learningDesignDAO.getLearningDesignById(learningDesignId) : new LearningDesign(); + + //get the core learning design stuff + //LearningDesign learningDesign = new LearningDesign(); + learningDesign.setLearningDesignUIID(WDDXProcessor.convertToInteger(table,"learningDesignUIID")); learningDesign.setDescription(WDDXProcessor.convertToString(table,"description")); learningDesign.setTitle(WDDXProcessor.convertToString(table,"title"));