|
|
|
File Attachments:
|
1.
report_patch.php (5 kB)
|
|
Environment:
|
latest CVS from head this morning
|
|
Issue Links:
|
Duplicate
|
|
|
|
This issue is duplicated by:
|
|
MDL-11376
Manual grading report does not take any notice of groups
|
|
|
|
|
|
|
|
It would be nice to be able to sort by groups when manually grading quizzes. In our environment at least there are quizzes taken at different times, so only 1 group might be left to grade. It's a pain to see all the users.
I have included the patch that fixes it.
//print activity group selector - Line 38 of /mod/quiz/report/grading/report.php
$userid = optional_param('userid', -1, PARAM_INT); //keeps it off of the grading page for one user
if($userid<0){
$reporturl = $CFG->wwwroot.'/mod/quiz/report.php?mode=grading';
$reporturlwithoptions = $reporturl . '&q=' . $quiz->id . '&action='.$action.'&questionid=' . $questionid;
/// find out current groups mode
$currentgroup = groups_get_activity_group($cm, true);
if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used
groups_print_activity_menu($cm, $reporturlwithoptions);
}
}
//get users of specified group if group set or isn't all participants - Line 198 of /mod/quiz/report/grading/report.php (just before $userids = implode(',', array_keys($users)); )
$groupid = optional_param('group', -1, PARAM_INT);
if($groupid>0){
$users = groups_get_members($groupid, $fields='u.id', $sort='firstname ASC');
}
|
|
Description
|
It would be nice to be able to sort by groups when manually grading quizzes. In our environment at least there are quizzes taken at different times, so only 1 group might be left to grade. It's a pain to see all the users.
I have included the patch that fixes it.
//print activity group selector - Line 38 of /mod/quiz/report/grading/report.php
$userid = optional_param('userid', -1, PARAM_INT); //keeps it off of the grading page for one user
if($userid<0){
$reporturl = $CFG->wwwroot.'/mod/quiz/report.php?mode=grading';
$reporturlwithoptions = $reporturl . '&q=' . $quiz->id . '&action='.$action.'&questionid=' . $questionid;
/// find out current groups mode
$currentgroup = groups_get_activity_group($cm, true);
if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used
groups_print_activity_menu($cm, $reporturlwithoptions);
}
}
//get users of specified group if group set or isn't all participants - Line 198 of /mod/quiz/report/grading/report.php (just before $userids = implode(',', array_keys($users)); )
$groupid = optional_param('group', -1, PARAM_INT);
if($groupid>0){
$users = groups_get_members($groupid, $fields='u.id', $sort='firstname ASC');
}
|
Show » |
committed 1 file to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 23/May/08 09:00 PM
MDL-12547 "allow manual quiz grading to sort by groups" added code to select which group to grade.
|
|
|
committed 1 file to 'Moodle CVS' - 23/May/08 09:14 PM
MDL-12547 "allow manual quiz grading to sort by groups" added code to select which group to grade.
Merged from Moodle 1.9 branch
|
|
|
|