Skip to content

Commit b59f56c

Browse files
committed
Merge branch 'MDL-65731_37' of https://github.com/timhunt/moodle into MOODLE_37_STABLE
2 parents d2707c2 + 15d5c9a commit b59f56c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

mod/quiz/report/grading/report.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,9 @@ protected function get_usage_ids_where_question_in_state($summarystate, $slot,
551551
case "studentfirstname":
552552
$orderby = "u.firstname, u.lastname";
553553
break;
554+
case "idnumber":
555+
$orderby = "u.idnumber";
556+
break;
554557
}
555558
}
556559

mod/quiz/report/grading/tests/behat/grading.feature

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@mod @mod_quiz
1+
@mod @mod_quiz @quiz @quiz_grading
22
Feature: Basic use of the Manual grading report
33
In order to easily find students attempts that need manual grading
44
As a teacher
@@ -50,8 +50,15 @@ Feature: Basic use of the Manual grading report
5050
And "Short answer 001" row "To grade" column of "questionstograde" table should contain "0"
5151
And "Short answer 001" row "Already graded" column of "questionstograde" table should contain "0"
5252

53-
# Adjust the mark for Student1.
53+
# Go to the grading page.
5454
And I click on "update grades" "link" in the "Short answer 001" "table_row"
55+
And I should see "Grading attempts 1 to 1 of 1"
56+
57+
# Test the display options.
58+
And I set the field "Order attempts" to "By student id number"
59+
And I press "Change options"
60+
61+
# Adjust the mark for Student1.
5562
And I set the field "Comment" to "I have adjusted your mark to 0.6"
5663
And I set the field "Mark" to "0.6"
5764
And I press "Save and go to next page"

0 commit comments

Comments
 (0)