Permalink
Browse files

MDL-39049 Badges: Fix error when awarding a badge from recipients page

  • Loading branch information...
1 parent 9b81eef commit 9b0f001445b4cbfa05e38812a918afdfd5fa4767 @ybozhko ybozhko committed with damyon Apr 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 badges/award.php
View
@@ -50,7 +50,7 @@
require_capability('moodle/badges:awardbadge', $context);
-$url = new moodle_url('/badges/award.php', array('id' => $badgeid));
+$url = new moodle_url('/badges/award.php', array('id' => $badgeid, 'role' => $role));
$PAGE->set_url($url);
$PAGE->set_context($context);

0 comments on commit 9b0f001

Please sign in to comment.