-
Bug
-
Resolution: Fixed
-
Minor
-
2.2.5, 2.3, 2.4
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
-
MOODLE_22_STABLE, MOODLE_23_STABLE
-
master_
MDL-35562 -
sync_enrolments has this function which tries to get a list of users for "this" course to enrol
$sql = $this->db_get_sql($table, array($coursefield=>$course->mapping), $sqlfields);
|
if ($rs = $extdb->Execute($sql)) {
|
...
|
} else {
|
mtrace('Error while communicating with external enrolment database');
|
$extdb->Close();
|
return;
|
}
|
problem is if the idnumber in a course contains something that would cause the sql to fail - eg char instead of expected int - the enrolment process halts at this point and stops any further enrolment.
it would be better to "continue" at this point instead of close/return.
- blocks
-
MDL-35701 Add unit tests, cleanup and add restore support for enrol_database
-
- Closed
-