Permalink
Browse files

MDL-19542 Outcomes report display the name of the activity instead of…

… the name of the outcome
  • Loading branch information...
1 parent 44659da commit 2ccfd7509d27e12c0775dd57440e9da40e23ccba mudrd8mz committed Sep 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 grade/report/outcomes/index.php
@@ -108,7 +108,7 @@
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();
}

0 comments on commit 2ccfd75

Please sign in to comment.