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

This commit is contained in:
Mihail Geshoski
2020-07-20 08:54:11 +08:00
parent 741d6dde19
commit f9bcf22483
+1 -4
View File
@@ -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);