-
Bug
-
Resolution: Fixed
-
Blocker
-
2.8
-
MOODLE_28_STABLE
-
MOODLE_28_STABLE
-
master_
MDL-46669 -
Calling SetValue("cmi.location", "bob"), then later getValue("cmi.location") will return "'bob'" - note the extra quotes added by scorm_empty() in the 1.3 version. This causes failures for example if the scorm sets the cmi.location to page2.html, it will try to navigate to site.com/scorm/'page2.html' . That will throw a 404 since the filename should not include quotes.
This is a regression apparently caused by MDL-35870, separating js and php files. Checking out the immediately preceding commit and testing, the problem is not observed with the previous commit. Also, the function to add the quotation marks did not exist until MDL-35870.
It may be worth noting that the SCORM 1.2 version does not call the function to add quotes to strings. It instead calls the function scorm_isset, which is identical except that it does not add quotes within values.