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"