From 70b5b48c3e32c4f141198e9f8d0962aca8195aab Mon Sep 17 00:00:00 2001 From: mudrd8mz Date: Mon, 28 Sep 2009 07:51:18 +0000 Subject: [PATCH] MDL-19542 Outcomes report display the name of the activity instead of the name of the outcome Merged from 1.9 --- grade/report/outcomes/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grade/report/outcomes/index.php b/grade/report/outcomes/index.php index dd2c933433..4eddb8f3ee 100644 --- a/grade/report/outcomes/index.php +++ b/grade/report/outcomes/index.php @@ -108,7 +108,7 @@ foreach ($report_info as $outcomeid => $outcomedata) { if ($item->itemtype == 'mod') { $cm = get_coursemodule_from_instance($item->itemmodule, $item->iteminstance, $item->courseid); - $itemname = ''.$grade_item->get_name().''; + $itemname = ''.format_string($cm->name, true, $cm->course).''; } else { $itemname = $grade_item->get_name(); } -- 2.39.5