-
Bug
-
Resolution: Fixed
-
Minor
-
3.1
-
MOODLE_31_STABLE
-
MOODLE_31_STABLE
-
master_
MDL-56358 -
typically when cohorts are created using the UI we end up with an empty string in the idnumber field. But if another method is used and any cohort has a Null value in the idnumber field, the select cohorts ajax search fails and no cohorts can be selected.
Invalid response value detected
File: .../lib/externallib.php Line: 424
Stack trace:
cohorts => Invalid response value detected: idnumber => Invalid response value detected: Invalid external api response: the value is "", the server was expecting "raw" typeError code: invalidresponse
the core function cohort_add_cohort() uses "NULL" as the idnumber if it is not passed in the initial parameter.