Permalink
Browse files

MDL-37085 bug fix in link for module subtypes. Thanks to Andrew Nicols

  • Loading branch information...
1 parent 11fbebb commit cf003abc929c9e70cd7b4054236c935f096e6d04 @marinaglancy marinaglancy committed with Sam Hemelryk Jan 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/lib.php
View
@@ -1169,7 +1169,7 @@ function get_module_metadata($course, $modnames, $sectionreturn = null) {
if (get_string_manager()->string_exists('help' . $subtype->name, $modname)) {
$subtype->help = get_string('help' . $subtype->name, $modname);
}
- $subtype->link = new moodle_url($urlbase, array('add' => $subtype->type));
+ $subtype->link = new moodle_url($urlbase, array('add' => $modname, 'type' => $subtype->name));
$group->types[] = $subtype;
}
$modlist[$course->id][$modname] = $group;

0 comments on commit cf003ab

Please sign in to comment.