From 51b11e94467f736c720f37b5673fe6b8a9e18e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Benedicte?= Date: Wed, 12 Nov 2025 17:15:51 +0100 Subject: [PATCH] MDL-87054 mod_glossary: Change "Comments" column position. --- public/mod/glossary/classes/courseformat/overview.php | 2 +- public/mod/glossary/tests/behat/overview_report.feature | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/mod/glossary/classes/courseformat/overview.php b/public/mod/glossary/classes/courseformat/overview.php index 2b4671180e3..fbd887fbb49 100644 --- a/public/mod/glossary/classes/courseformat/overview.php +++ b/public/mod/glossary/classes/courseformat/overview.php @@ -34,9 +34,9 @@ class overview extends \core_courseformat\activityoverviewbase { #[\Override] public function get_extra_overview_items(): array { return [ - 'comments' => $this->get_extra_comments_overview(), 'totalentries' => $this->get_extra_totalentries_overview(), 'myentries' => $this->get_extra_myentries_overview(), + 'comments' => $this->get_extra_comments_overview(), ]; } diff --git a/public/mod/glossary/tests/behat/overview_report.feature b/public/mod/glossary/tests/behat/overview_report.feature index f5add847b8c..b30027067d0 100644 --- a/public/mod/glossary/tests/behat/overview_report.feature +++ b/public/mod/glossary/tests/behat/overview_report.feature @@ -67,10 +67,10 @@ Feature: Testing overview integration in mod_glossary When I am on the "Course 1" "course > activities > glossary" page logged in as "student1" And I should not see "Actions" in the "glossary_overview_collapsible" "region" Then the following should exist in the "Table listing all Glossary activities" table: - | Name | Comments | Total entries | My entries | - | Glossary without defaultapproval | 0 | 2 | 3 | - | Glossary without entries | - | 0 | 0 | - | Glossary with comments | 2 | 1 | 1 | + | Name | Total entries | My entries | Comments | + | Glossary without defaultapproval | 2 | 3 | 0 | + | Glossary without entries | 0 | 0 | - | + | Glossary with comments | 1 | 1 | 2 | Scenario: The glossary overview report should generate log events Given I am on the "Course 1" "course > activities > glossary" page logged in as "teacher1"