Permalink
Browse files

Fixing update_group_button and update_groups_button. They were no lon…

…ger calling valid URL's.
  • Loading branch information...
mchurch
mchurch committed Jun 25, 2007
1 parent fc1bdd6 commit 1239139dd39266da904d12278f8592cc7c802835
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/weblib.php
View
@@ -4260,10 +4260,11 @@ function update_group_button($courseid, $groupid) {
if (has_capability('moodle/course:managegroups', get_context_instance(CONTEXT_GROUP, $groupid))) {
$string = get_string('editgroupprofile');
- return "<form $CFG->frametarget method=\"get\" action=\"$CFG->wwwroot/group/index.php\">".
+ return "<form $CFG->frametarget method=\"get\" action=\"$CFG->wwwroot/group/edit.php\">".
'<div>'.
- '<input type="hidden" name="id" value="'. $courseid .'" />'.
- '<input type="hidden" name="group" value="'. $groupid .'" />'.
+ '<input type="hidden" name="courseid" value="'. $courseid .'" />'.
+ '<input type="hidden" name="id" value="'. $groupid .'" />'.
+ '<input type="hidden" name="grouping" value="-1" />'.
'<input type="hidden" name="edit" value="on" />'.
'<input type="submit" value="'. $string .'" /></div></form>';
}

0 comments on commit 1239139

Please sign in to comment.