Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-72894

Downloading course content doesn't filter/format values correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.10.8, 3.11.4
    • 3.10.7
    • Course
    • MOODLE_310_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • Hide

      Setup

      1. Log in as admin
      2. Navigate to Plugins > Filters > Manage filters in site administration
      3. Set Multi-Language Content to On and Apply to: Content and headings
      4. Navigate to Courses > Download course content
      5. Enable Download course content feature available and save changes
      6. Navigate to Courses > Course default settings
      7. Set Enable download course content to Yes and save changes

      Create course content

      1. Create a new course, with the following Course full name:

        <span class="multilang" lang="en">Course (EN)</span><span class="multilang" lang="de">Course (DE)</span>
        

      2. Set the Course summary as below (switch to HTML mode in the editor):

        <span class="multilang" lang="en">Course Summary (EN)</span><span class="multilang" lang="de">Course Summary (DE)</span>
        

      3. Inside your new course, edit the General section
      4. Select Custom section name and enter the following:

        <span class="multilang" lang="en">Course Section (EN)</span><span class="multilang" lang="de">Course Section (DE)</span>
        

      5. Set the Summary as below (switch to HTML mode in the editor):

        <span class="multilang" lang="en">Course Section Summary (EN)</span><span class="multilang" lang="de">Course Section Summary (DE)</span>
        

      6. Edit settings of the Announcements forum
      7. Set Forum name to the following:

        <span class="multilang" lang="en">Forum (EN)</span><span class="multilang" lang="de">Forum (DE)</span>
        

      8. Set the Description as below (switch to HTML mode in the editor):

        <span class="multilang" lang="en">Forum Description (EN)</span><span class="multilang" lang="de">Forum Description (DE)</span>
        

      Download course content

      1. From the course page, click Actions menu > Download course content
      2. Confirm you do want to download course content (press Download)
      3. Extract downloaded zip file on to your computer
      4. Open index.html in the root of the extracted directory
      5. Confirm the window/tab title in browser is "<SITENAME> - Course (EN)"
      6. Confirm the clickable page title is "Course (EN)"
      7. Confirm the info message states: "This file is part of the content downloaded from Course (EN)."
      8. Confirm the page footer states: "This file is part of the content downloaded from Course (EN) by <USER> on <DATE>."
      9. Press Course summary
      10. Confirm the Summary content is "Course Summary (EN)"
      11. Press Course (EN) to go back to course index
      12. Confirm the course section is named "Course Section (EN)"
      13. Confirm the course section summary is "Course Section Summary (EN)"
      14. Confirm the forum module link is named "Forum (EN) (Forum)"
      15. Press the forum link
      16. Confirm the description is "Forum Description (EN)"
      Show
      Setup Log in as admin Navigate to Plugins > Filters > Manage filters in site administration Set Multi-Language Content to On and Apply to: Content and headings Navigate to Courses > Download course content Enable Download course content feature available and save changes Navigate to Courses > Course default settings Set Enable download course content to Yes and save changes Create course content Create a new course, with the following Course full name : <span class="multilang" lang="en">Course (EN)</span><span class="multilang" lang="de">Course (DE)</span> Set the Course summary as below (switch to HTML mode in the editor): <span class="multilang" lang="en">Course Summary (EN)</span><span class="multilang" lang="de">Course Summary (DE)</span> Inside your new course, edit the General section Select Custom section name and enter the following: <span class="multilang" lang="en">Course Section (EN)</span><span class="multilang" lang="de">Course Section (DE)</span> Set the Summary as below (switch to HTML mode in the editor): <span class="multilang" lang="en">Course Section Summary (EN)</span><span class="multilang" lang="de">Course Section Summary (DE)</span> Edit settings of the Announcements forum Set Forum name to the following: <span class="multilang" lang="en">Forum (EN)</span><span class="multilang" lang="de">Forum (DE)</span> Set the Description as below (switch to HTML mode in the editor): <span class="multilang" lang="en">Forum Description (EN)</span><span class="multilang" lang="de">Forum Description (DE)</span> Download course content From the course page, click Actions menu > Download course content Confirm you do want to download course content (press Download ) Extract downloaded zip file on to your computer Open index.html in the root of the extracted directory Confirm the window/tab title in browser is "<SITENAME> - Course (EN)" Confirm the clickable page title is "Course (EN)" Confirm the info message states: "This file is part of the content downloaded from Course (EN)." Confirm the page footer states: "This file is part of the content downloaded from Course (EN) by <USER> on <DATE>." Press Course summary Confirm the Summary content is "Course Summary (EN)" Press Course (EN) to go back to course index Confirm the course section is named "Course Section (EN)" Confirm the course section summary is "Course Section Summary (EN)" Confirm the forum module link is named "Forum (EN) (Forum)" Press the forum link Confirm the description is "Forum Description (EN)"

      When downloading course content, the names/summaries of exported items are not formatted correctly, so if a site is using multi-lang filters then the resulting downloaded data contains all unfiltered tags:

      Course:

      Module:

      Applies to name/summary of the course and it's sections and modules

        1. 72894-course.png
          72894-course.png
          155 kB
        2. 72894-module.png
          72894-module.png
          119 kB
        3. MDL-72894_Test Passed.png
          MDL-72894_Test Passed.png
          119 kB
        4. MDL72894 index.png
          MDL72894 index.png
          25 kB

            pholden Paul Holden
            pholden Paul Holden
            Simey Lameze Simey Lameze
            Andrew Lyons Andrew Lyons
            Gladys Basiana Gladys Basiana
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 48 minutes
                3h 48m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.