-
Bug
-
Resolution: Fixed
-
Minor
-
2.5
-
MOODLE_25_STABLE
-
MOODLE_26_STABLE
-
MDL-40666-master -
-
BACKEND Sprint 2
While I was writing MDL-39956 I discovered a bug caused by webservices changing an int to a floating point number.
PARAM_NUMBER is a float and should only be used for floating point numbers, here are some other incorrectly specified params:
cohort/externallib.php: 'id' => new external_value(PARAM_NUMBER, 'ID of the cohort'),
|
cohort/externallib.php: 'id' => new external_value(PARAM_NUMBER, 'ID of the cohort'),
|
enrol/externallib.php: 'id' => new external_value(PARAM_NUMBER, 'ID of the user'),
|