[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

skala
Yannick Warnier 18 years ago
parent 903b0996a5
commit a18be7084e
  1. 4
      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';
}

Loading…
Cancel
Save