Skip to content

Commit

Permalink
MDL-66200 gradebook: check selected feedback option when importing data
Browse files Browse the repository at this point in the history
  • Loading branch information
jwalits committed Apr 9, 2020
1 parent df0e58a commit c74ccbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grade/import/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c74ccbc

Please sign in to comment.