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

Multilang Filters not applied to Calendar block

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Prerequisites

      1. Add a second language pack to your Moodle instance, e.g. Russian ("ru").
      2. In Site administration > Development > Debugging, enable Developer debugging mode.
      3. Create a course, C1, and enrol a student in the course.

      Test

      1. As admin, go to Site administration > Plugins > Filters > Manage filters.
      2. Activate "Multi-Language Content" filter and select "Content and headings" under "Apply to".
      3. In a course, add an assignment with title

        <span lang="EN" class="multilang">TITLE ENGLISH</span><span lang="RU" class="multilang">TITLE RUSSIAN</span>

        having as due date tomorrow.
      4. Add the calendar block to the course if it isn't yet.
      5. Log out and log in as the student.
      6. Access the course and hover the due date of the assignment on the calendar.
      7. Verify the popup does show only the English title "TITLE ENGLISH".
      8. Go to the Dashboard.
      9. Hover the due date of the assignment on the calendar.
      10. Verify the popup does show only the English title "TITLE ENGLISH".
      11. Confirm you don't see any warning, error or notice.
      Show
      Prerequisites Add a second language pack to your Moodle instance, e.g. Russian ("ru"). In Site administration > Development > Debugging, enable Developer debugging mode. Create a course, C1, and enrol a student in the course. Test As admin, go to Site administration > Plugins > Filters > Manage filters. Activate "Multi-Language Content" filter and select "Content and headings" under "Apply to". In a course, add an assignment with title <span lang="EN" class="multilang">TITLE ENGLISH</span><span lang="RU" class="multilang">TITLE RUSSIAN</span> having as due date tomorrow. Add the calendar block to the course if it isn't yet. Log out and log in as the student. Access the course and hover the due date of the assignment on the calendar. Verify the popup does show only the English title "TITLE ENGLISH". Go to the Dashboard. Hover the due date of the assignment on the calendar. Verify the popup does show only the English title "TITLE ENGLISH". Confirm you don't see any warning, error or notice.
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE
    • Pull 3.9 Branch:
    • Pull 3.10 Branch:
      MDL-70355-310
    • Pull 3.11 Branch:
      MDL-70355-311
    • Pull Master Branch:
      MDL-70355-master

      Description

      Multilang2 Filters not applied in Calendar Block.

      How to reproduce.

      1. create a course with some assignments using multilang2 tags in titles
      2. set dates in settings that would display in the calendar
      3. Navigate to those dates in the calendar block
      4. Hover over the dates

      Multilang2 filter does not apply correctly.

      Moodle: v3.9.3

      Theme: Boost Campus  v3.9-r4

      Multilang2 Plugin: v1.1.2


       

       

        Attachments

        1. block.png
          block.png
          19 kB
        2. image-2020-12-23-14-42-54-588.png
          image-2020-12-23-14-42-54-588.png
          59 kB
        3. MDL-70355.png
          MDL-70355.png
          98 kB
        4. MDL-70355-fixed.png
          MDL-70355-fixed.png
          98 kB

          Activity

            People

            Assignee:
            lucaboesch Luca Bösch
            Reporter:
            mifantrax MIhai
            Integrator:
            Víctor Déniz Falcón
            Tester:
            Janelle Barcega
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              18/Jan/21

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 45 minutes
                1h 45m