Skip to content

Commit

Permalink
fix outcome part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyatregubov committed May 2, 2024
1 parent 080ff5d commit b588e82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grade/report/outcomes/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
foreach ($report_info[$outcomeid]['items'] as $itemid => $item) {
$gradeitem = new grade_item($item, false);

if ($gradeitem->is_calculated() && $DB->record_exists('grade_items_calculation_error', ['itemid' => $gradeitem->id])) {
if ($gradeitem->needsupdate ||
($gradeitem->is_calculated() && $DB->record_exists('grade_items_calculation_error', ['itemid' => $gradeitem->id]))) {
$calculationerror = true;
$report_info[$outcomeid]['items'][$itemid]->avg = get_string('error');
$report_info[$outcomeid]['items'][$itemid]->count = '';
Expand Down

0 comments on commit b588e82

Please sign in to comment.