Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.6, 2.4.3, 2.4.7, 2.5.3, 2.6
-
MySQL
-
MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
master_
MDL-41695 -
Description
Moodle is too restrictive regarding CMIDecimal format?
It allows only 2 digits on the right of the decimal point.
So communication between the SCO and moodle fails if the SCO tries to set a value of a score with more than 2 digits.
Wtih the SCORM debugger:
OK : LMSSetValue("cmi.core.score.raw", "12.34") => 0
KO : LMSSetValue("cmi.core.score.raw", "12.345") => 405
This issue is due to the regular expression defining CMIDecimal format in scorm_12.js.php which is too restrictive and non conformant with the SCORM 1.2 / AICC (CMI001) specifications: 255 characters, positive or negative, decimal.
The regular expression could be replaced as following?
Attachments
Issue Links
- is duplicated by
-
MDL-42727 LMS CMI Value
-
- Closed
-