From bf2577afcabfbd385564fcb6022e16e43f60d99a Mon Sep 17 00:00:00 2001 From: James C <5689414+james-cnz@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:01:59 +1200 Subject: [PATCH] MDL-82679 course: Prevent collapsable sections conflicting --- .upgradenotes/MDL-82679-2025013012141805.yml | 14 +++++++ .../local/content/section/content.mustache | 2 +- .../local/content/section/header.mustache | 6 +-- .../tests/behat/content_preferences.feature | 12 +++--- .../behat/course_collapse_sections.feature | 40 +++++++++---------- 5 files changed, 44 insertions(+), 30 deletions(-) create mode 100644 .upgradenotes/MDL-82679-2025013012141805.yml diff --git a/.upgradenotes/MDL-82679-2025013012141805.yml b/.upgradenotes/MDL-82679-2025013012141805.yml new file mode 100644 index 00000000000..8ddaea790b8 --- /dev/null +++ b/.upgradenotes/MDL-82679-2025013012141805.yml @@ -0,0 +1,14 @@ +issueNumber: MDL-82679 +notes: + core_courseformat: + - message: >- + HTML IDs relating to section collapse/expand have been changed in the + course format templates. + + - core_courseformat/local/content/section/header + #collapssesection{{num}} has been changed to #collapsesectionid{{id}} + + - core_courseformat/local/content/section/content + #coursecontentcollapse{{num}} had been changed to + #coursecontentcollapseid{{id}} + type: fixed diff --git a/course/format/templates/local/content/section/content.mustache b/course/format/templates/local/content/section/content.mustache index b12016f48c3..fa170060bf9 100644 --- a/course/format/templates/local/content/section/content.mustache +++ b/course/format/templates/local/content/section/content.mustache @@ -161,7 +161,7 @@ {{/headerdisplaymultipage}} {{/header}} -
{{#isstealth}} diff --git a/course/format/templates/local/content/section/header.mustache b/course/format/templates/local/content/section/header.mustache index 862f06ef214..b920bcc00ba 100644 --- a/course/format/templates/local/content/section/header.mustache +++ b/course/format/templates/local/content/section/header.mustache @@ -55,10 +55,10 @@