[svn r21157] Little fix to avoid auto-completing too much (see FS#4249)

skala
Yannick Warnier 16 years ago
parent b9f15ee8ad
commit d78105be43
  1. 4
      main/newscorm/scorm_api.php

@ -1,4 +1,4 @@
<?php // $Id: scorm_api.php 21156 2009-06-01 05:32:44Z yannoo $
<?php // $Id: scorm_api.php 21157 2009-06-01 05:41:16Z yannoo $
/*
==============================================================================
Dokeos - elearning and course management software
@ -753,7 +753,7 @@ function savedata(origin) {
<?php }?>
;
} else {
if ((origin== 'finish' || origin == 'unload') && lesson_status != 'completed' && lesson_status != 'passed' && lesson_status != 'browsed') {
if ((origin== 'finish' || origin == 'unload') && lesson_status != 'completed' && lesson_status != 'passed' && lesson_status != 'browsed' && lesson_status != 'failed' && lesson_status != 'incomplete') {
/*
The SCORM1.2 Runtime object document says for the "cmi.core.lesson_status" variable:
Upon receiving the LMSFinish() call or the user navigates away,

Loading…
Cancel
Save