From b7fe18eb8b1b0f7e1c8a072da488622eef354071 Mon Sep 17 00:00:00 2001 From: Andrew Zito Date: Mon, 11 Feb 2019 14:48:14 -0500 Subject: [PATCH] MDL-63316 participants: lastname sort for participants table --- user/classes/participants_table.php | 4 ++-- user/tests/behat/view_participants.feature | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/user/classes/participants_table.php b/user/classes/participants_table.php index 2ad74974c53..0224f52c82c 100644 --- a/user/classes/participants_table.php +++ b/user/classes/participants_table.php @@ -220,8 +220,8 @@ class participants_table extends \table_sql { $this->define_columns($columns); $this->define_headers($headers); - // Make this table sorted by first name by default. - $this->sortable(true, 'firstname'); + // Make this table sorted by last name by default. + $this->sortable(true, 'lastname'); $this->no_sorting('select'); $this->no_sorting('roles'); diff --git a/user/tests/behat/view_participants.feature b/user/tests/behat/view_participants.feature index 6f433b1dec8..e69732b47ab 100644 --- a/user/tests/behat/view_participants.feature +++ b/user/tests/behat/view_participants.feature @@ -132,7 +132,6 @@ Feature: View course participants When I log in as "teacher1x" And I am on "Course 1" course homepage And I navigate to course participants - And I follow "Surname" And I click on "Select all" "checkbox" Then I should not see "Student 9x" And the field "Select 'Teacher 1x'" matches value "1"