This commit is contained in:
Adrian Greeve 2021-02-11 10:54:38 +08:00
commit 007c270507
2 changed files with 4 additions and 1 deletions

View File

@ -88,7 +88,7 @@ $headers = [];
// Fetch all overrides.
if ($groupmode) {
$colname = get_string('group');
$headers[] = get_string('group');
// To filter the result by the list of groups that the current user has access to.
if ($groups) {
$params = ['quizid' => $quiz->id];

View File

@ -76,6 +76,9 @@ Feature: Quiz group override
| Attempts allowed | 2 |
And I press "Save"
Then "Group 1" "table_row" should exist
# Check all column headers are present.
And I should see "Group" in the "Overrides" "table_row"
And I should see "Action" in the "Overrides" "table_row"
Scenario: A teacher with accessallgroups permission should see all group overrides
Given the following "mod_quiz > group overrides" exist: