MDL-70773 Quiz overrides: User links don't point to user profile page

This commit is contained in:
Mahmoud Kassaei
2021-02-03 11:47:23 +00:00
parent 9dabd071fe
commit 32b645fd03
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ foreach ($overrides as $override) {
} else {
$usercell = new html_table_cell();
$usercell->rowspan = count($fields);
$usercell->text = html_writer::link(new moodle_url($groupurl, ['id' => $override->userid]),
$usercell->text = html_writer::link(new moodle_url($userurl, ['id' => $override->userid]),
fullname($override) . $extranamebit);
$usercells[] = $usercell;
@@ -67,6 +67,9 @@ Feature: Quiz user override
And "Edit" "icon" should exist in the "Student One" "table_row"
And "copy" "icon" should exist in the "Student One" "table_row"
And "Delete" "icon" should exist in the "Student One" "table_row"
And I follow "Student One"
And I should see "Student One"
And I should see "User details"
@javascript
Scenario: Teacher without 'See full user identity in lists' can see and edit overrides