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

allow manual quiz grading to sort by groups

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9
    • 1.9.2
    • Quiz
    • None
    • latest CVS from head this morning
    • MySQL
    • MOODLE_19_STABLE
    • 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

              jamiesensei Jamie Pratt
              kclapp Karlene Clapp
              Jérôme Mouneyrac Jérôme Mouneyrac
              Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jul/08