Skip to content

Commit

Permalink
MDL-52052 gradeimport_csv: Do not skip rows with blank user fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihail Geshoski committed Jul 20, 2020
1 parent 741d6dd commit f9bcf22
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions grade/import/csv/classes/load_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,7 @@ protected function map_user_data_with_value($mappingidentifier, $value, $header,
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);
Expand Down

0 comments on commit f9bcf22

Please sign in to comment.