Permalink
Browse files

Merge branch 'MDL-39932_25' of git://github.com/grabs/moodle into MOO…

…DLE_25_STABLE
  • Loading branch information...
2 parents 827e54d + b4de832 commit 189590bb37854c1d8593d699314cc8ac09912532 @stronk7 stronk7 committed Jun 3, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 mod/feedback/mapcourse.php
@@ -68,6 +68,7 @@
require_capability('mod/feedback:mapcourse', $context);
if ($coursefilter) {
+ $map = new stdClass;
$map->feedbackid = $feedback->id;
$map->courseid = $coursefilter;
// insert a map only if it does exists yet
@@ -123,16 +124,16 @@
if ($coursemap = feedback_get_courses_from_sitecourse_map($feedback->id)) {
$table = new flexible_table('coursemaps');
+ $table->baseurl = $url;
$table->define_columns( array('course'));
$table->define_headers( array(get_string('mappedcourses', 'feedback')));
$table->setup();
$unmapurl = new moodle_url('/mod/feedback/unmapcourse.php');
foreach ($coursemap as $cmap) {
- $cmapcontext = context_course::instance($cmap->id);
- $cmapshortname = format_string($cmap->shortname, true, array('context' => $cmapcontext));
$coursecontext = context_course::instance($cmap->courseid);
+ $cmapshortname = format_string($cmap->shortname, true, array('context' => $coursecontext));
$cmapfullname = format_string($cmap->fullname, true, array('context' => $coursecontext));
$unmapurl->params(array('id'=>$id, 'cmapid'=>$cmap->id));
$anker = '<a href="'.$unmapurl->out().'">';

0 comments on commit 189590b

Please sign in to comment.