Browse Source

[svn r12972] Fixed bad behaviour in LMS where status was changed automatically once score was > 80%. SCORM 1.2 norm specifically says that the LMS *cannot override SCO determined status* (kept behvaviour for non-SCORM like Dokeos paths and AICC

Yannick Warnier 17 years ago
parent
commit
a18be7084e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/newscorm/scorm_api.php

+ 2 - 2
main/newscorm/scorm_api.php

@@ -502,8 +502,8 @@ function savedata(origin) { //origin can be 'commit', 'finish' or 'terminate'
     {
       lesson_status = 'passed';
     }
-    else if( (mastery_score < 0) && ( lesson_status == 'incomplete') && (score >= (0.8*max) ) )
-    {
+    else if( (mastery_score < 0) && (lms_lp_type != '2') && ( lesson_status == 'incomplete') && (score >= (0.8*max) ) )
+    { //the status cannot be modified automatically by the LMS under SCORM 1.2's rules
       lesson_status = 'completed';
     }