Issue Details (XML | Word | Printable)

Key: MDL-12547
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Jamie Pratt
Reporter: Karlene Clapp
Votes: 1
Watchers: 4
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

allow manual quiz grading to sort by groups

Created: 12/Dec/07 02:49 AM   Updated: 03/Jun/08 04:40 PM
Return to search
Component/s: Quiz
Affects Version/s: 1.9
Fix Version/s: 1.9.2

File Attachments: 1. File report_patch.php (5 kB)

Environment: latest CVS from head this morning
Issue Links:
Duplicate
 

Database: MySQL
Participants: Jamie Pratt, Karlene Clapp, Martin Dougiamas and Tim Hunt
Security Level: None
QA Assignee: Jerome Mouneyrac
Resolved date: 24/May/08
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
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 . '&amp;q=' . $quiz->id . '&amp;action='.$action.'&amp;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');
}



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Jamie Pratt 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.
MODIFY mod/quiz/report/grading/report.php   Rev. 1.25.2.5    (+52 -31 lines)
Jamie Pratt 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
MODIFY mod/quiz/report/grading/report.php   Rev. 1.32    (+53 -33 lines)