MDL-39049 Badges: Fix error when awarding a badge from recipients page
This commit is contained in:
committed by
Damyon Wiese
parent
9b81eef05d
commit
9b0f001445
+1
-1
@@ -50,7 +50,7 @@ if ($badge->type == BADGE_TYPE_COURSE) {
|
||||
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user