MDL-25626 fix incorrect cm id in completion report
authorPetr Skoda <commits@skodak.org>
Sat, 12 Feb 2011 16:35:41 +0000 (17:35 +0100)
committerPetr Skoda <commits@skodak.org>
Sat, 12 Feb 2011 16:35:41 +0000 (17:35 +0100)
credit goes to Aaron Barnes

course/report/completion/index.php

index 9f3df05..cb7aab6 100644 (file)
@@ -474,7 +474,7 @@ if(!$csv) {
 
                 // Display icon
                 $icon = $OUTPUT->pix_url('icon', $criterion->module);
-                $iconlink = $CFG->wwwroot.'/mod/'.$criterion->module.'/view.php?id='.$activity->id;
+                $iconlink = $CFG->wwwroot.'/mod/'.$criterion->module.'/view.php?id='.$activity->moduleinstance;
                 $icontitle = $activity->name;
                 $iconalt = get_string('modulename', $criterion->module);
                 break;