]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19542 Outcomes report display the name of the activity instead of the name of...
authormudrd8mz <mudrd8mz>
Mon, 28 Sep 2009 07:51:18 +0000 (07:51 +0000)
committermudrd8mz <mudrd8mz>
Mon, 28 Sep 2009 07:51:18 +0000 (07:51 +0000)
Merged from 1.9

grade/report/outcomes/index.php

index dd2c93343337b7ca54514ca697b302a1ed0667fc..4eddb8f3ee0f59e9e1d5e5bfa1ebc2c91003cada 100644 (file)
@@ -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 = '<a href="'.$CFG->wwwroot.'/mod/'.$item->itemmodule.'/view.php?id='.$cm->id.'">'.$grade_item->get_name().'</a>';
+                $itemname = '<a href="'.$CFG->wwwroot.'/mod/'.$item->itemmodule.'/view.php?id='.$cm->id.'">'.format_string($cm->name, true, $cm->course).'</a>';
             } else {
                 $itemname = $grade_item->get_name();
             }