MDL-48068 tool_monitor: Link to course points to the right course
authorFrederic Massart <fred@moodle.com>
Wed, 5 Nov 2014 07:06:27 +0000 (15:06 +0800)
committerFrederic Massart <fred@moodle.com>
Wed, 5 Nov 2014 07:06:27 +0000 (15:06 +0800)
admin/tool/monitor/classes/output/managerules/renderable.php
admin/tool/monitor/classes/output/managesubs/subs.php

index 198a606..d37b734 100644 (file)
@@ -122,7 +122,7 @@ class renderable extends \table_sql implements \renderable {
         if (empty($courseid)) {
             return $coursename;
         } else {
-            return \html_writer::link(new \moodle_url('/course/view.php', array('id' => $this->courseid)), $coursename);
+            return \html_writer::link(new \moodle_url('/course/view.php', array('id' => $courseid)), $coursename);
         }
     }
 
index e4a75ed..de8eebe 100644 (file)
@@ -117,7 +117,7 @@ class subs extends \table_sql implements \renderable {
         if (empty($courseid)) {
             return $coursename;
         } else {
-            return \html_writer::link(new \moodle_url('/course/view.php', array('id' => $this->courseid)), $coursename);
+            return \html_writer::link(new \moodle_url('/course/view.php', array('id' => $courseid)), $coursename);
         }
     }