Skip to content

Commit

Permalink
Merge branch 'MDL-73466' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols authored and sarjona committed Jun 10, 2022
2 parents 4a6966d + 3642b6d commit efb5c08
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/forum/report/summary/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
foreach ($courseforums as $courseforumid => $courseforum) {
if ($courseforum->uservisible) {
$forumsvisibletouser[$courseforumid] = $courseforum;
$forumselectoptions[$courseforumid] = $courseforum->name;
$forumselectoptions[$courseforumid] = $courseforum->get_formatted_name();
}
}

Expand All @@ -67,7 +67,7 @@
}

$filters['forums'] = [$forumid];
$title = $forumsvisibletouser[$forumid]->name;
$title = $forumsvisibletouser[$forumid]->get_formatted_name();
$forumcm = $forumsvisibletouser[$forumid];
$cms[] = $forumcm;

Expand Down
12 changes: 12 additions & 0 deletions mod/forum/report/summary/tests/behat/course_summary.feature
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ Feature: Course level forum summary report
| First name / Surname |
| Student 3 |

Scenario: Course forum summary report correctly formats forum activity names
Given the "multilang" filter is "on"
And the "multilang" filter applies to "content and headings"
And the following "activity" exists:
| activity | forum |
| course | C1 |
| name | <span class="multilang" lang="en">F-Eng</span><span class="multilang" lang="de">F-Ger</span> |
When I am on the "C1" "Course" page logged in as "teacher1"
And I follow "F-Eng"
And I navigate to "Reports" in current page administration
Then the "Forum selected" select box should contain "F-Eng"

Scenario: Students given the view capability can view their own course report data
Given the following "permission overrides" exist:
| capability | permission | role | contextlevel | reference |
Expand Down

0 comments on commit efb5c08

Please sign in to comment.