Skip to content

Commit 9ee15f2

Browse files
committed
Commit lesson_status changes
If handleCompletionStatus is set to true and completion status is set to either "not attempted" or "unknown", lesson_status is automatically set to "incomplete". However, scorm.save() (aka Commit) was not being invoked, potentially causing the changes to be lost. scorm.save() is now invoked, ensuring changes are persisted in LMS. Hat tip to Jørgen Nielsen
1 parent c663b1a commit 9ee15f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/JavaScript/SCORM_API_wrapper.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ pipwerks.SCORM.connection.initialize = function(){
292292

293293
}
294294

295+
//Commit changes
296+
scorm.save();
297+
295298
}
296299

297300
}

0 commit comments

Comments
 (0)