Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-12547

allow manual quiz grading to sort by groups

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9.2
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      latest CVS from head this morning
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      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'); }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jamiesensei Jamie Pratt
              Reporter:
              kclapp Karlene Clapp
              Tester:
              Jérôme Mouneyrac Jérôme Mouneyrac
              Participants:
              Component watchers:
              Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jul/08