Skip to content

Commit

Permalink
MDL-63002 core_grade: fixed deletion of overriden letters
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Perez authored and mdjnelson committed Jul 30, 2018
1 parent 6e8235c commit ac33483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grade/edit/letter/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
if (!$admin and empty($data->override)) {
$records = $DB->get_records('grade_letters', array('contextid' => $context->id));
foreach ($records as $record) {
$DB->delete_record('grade_letters', array('id' => $record->id));
$DB->delete_records('grade_letters', array('id' => $record->id));
// Trigger the letter grade deleted event.
$event = \core\event\grade_letter_deleted::create(array(
'objectid' => $record->id,
Expand Down

0 comments on commit ac33483

Please sign in to comment.