1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-25 10:26:17 +02:00

MDL-52052 gradeimport_csv: Do not skip rows with blank user fields

This commit is contained in:
Mihail Geshoski 2020-06-26 14:57:49 +08:00
parent 741d6dde19
commit f9bcf22483

@ -399,10 +399,7 @@ class gradeimport_csv_load_data {
case 'useridnumber':
case 'useremail':
case 'username':
// Skip invalid row with blank user field.
if (!empty($value)) {
$this->studentid = $this->check_user_exists($value, $userfields[$mappingidentifier]);
}
$this->studentid = $this->check_user_exists($value, $userfields[$mappingidentifier]);
break;
case 'new':
$this->import_new_grade_item($header, $key, $value);