Skip to content
Snippets Groups Projects
Commit 979c6cca authored by srosse's avatar srosse
Browse files

OO-73: set the status of a SCO without status as not attempted

parent 94d74a22
No related branches found
No related tags found
No related merge requests found
...@@ -308,10 +308,15 @@ public class OLATApiAdapter extends LogDelegator implements ch.ethz.pfplms.scorm ...@@ -308,10 +308,15 @@ public class OLATApiAdapter extends LogDelegator implements ch.ethz.pfplms.scorm
// </OLATCE-289> // </OLATCE-289>
} }
lmsDataBean.setDataAsMap(cmiData); try {
odatahandler = new LMSDataHandler(scormManager, lmsDataBean, scormSettingsHandler); lmsDataBean.setDataAsMap(cmiData);
odatahandler.updateCMIData(olatScoId); odatahandler = new LMSDataHandler(scormManager, lmsDataBean, scormSettingsHandler);
return "true"; odatahandler.updateCMIData(olatScoId);
return "true";
} catch (Exception e) {
logError("Error during commit", e);
return "false";
}
} }
/** /**
......
...@@ -118,6 +118,9 @@ public class LMSDataHandler { ...@@ -118,6 +118,9 @@ public class LMSDataHandler {
// next update the model with the results from browser. // next update the model with the results from browser.
// updateClientModel(itemId, cmiStrings); // updateClientModel(itemId, cmiStrings);
// update prerequisite table // update prerequisite table
if(status == null) {
status = SequencerModel.ITEM_NOT_ATTEMPTED;
}
addtoPrereqTable(itemId, status, true); addtoPrereqTable(itemId, status, true);
// If an LMSFinish() was made by the sco then we do not need to update // If an LMSFinish() was made by the sco then we do not need to update
// anything client side // anything client side
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment