1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-25 10:26:17 +02:00

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

Merged from 1.9
This commit is contained in:
mudrd8mz 2009-09-28 07:51:18 +00:00
parent 4fd7e89644
commit 70b5b48c3e

@ -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();
}