Merge branch 'MDL-66200-master_gradebook_csv_import' of https://github.com/jwalits/moodle

This commit is contained in:
Jun Pataleta 2020-04-15 23:16:57 +08:00
commit 9b77dc8db2

View File

@ -112,7 +112,7 @@ function grade_import_commit($courseid, $importcode, $importfeedback=true, $verb
// make the grades array for update_grade
foreach ($grades as $grade) {
if (!$importfeedback) {
if (!$importfeedback || $grade->feedback === null) {
$grade->feedback = false; // ignore it
}
if ($grade->importonlyfeedback) {