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:
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user