Details
Description
While reading scorm, you have links "< Previous Continue >" over the scorm area.
The link "Previous" is correct, but the "Continue" points not for the next item, but for next after the next one.
Say, you are reading page 10 of scorm. The link "previous" points to page 9 (correctly). But "Continue" points to 12, not to 11, as it would. So pressing "Continue" leads the student by odd or even course pages; in our example by 10 - 12 - 14 - 16 and so on.
I tested it by SCORM 1.2.
Probably, somewhere someone added redundant 1 when calculated the id of next page?
The problem can be fixed by changing line 254 in
moodle\mod\scorm\datamodels\scorm_12lib.php
from:
$nextsco = next($scoes);
to:
$nextsco = current($scoes);
next($scoes);
I would have attached a patch, but can't seem to connect to the cvs server.