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

Course content change notification subject does not process multi-lang filter

    XMLWordPrintable

Details

    • MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    •  MDL77833-course-content-chng-notificatn-multilang-m4
    • MDL77833-course-content-chng-notificatn-multilang
    • MDL-77833-course-content-chng-notiification-multilang
    • Hide

      Requirements

      1. mailcatcher (or similar or working mail) to intercept mails
      2. An additional language pack as German installed in your Moodle instance.

       

      Testing instructions

      1. Log in to Moodle instance and go to Notification settings
      2. Ensure that 'Course content changes' under System notifications have both System and Email notifications enabled
      3. Access to "Manage filters" and, enable the "Multi-language content" filter for both, Content and headings.
      4. Create a course where the coursename is defined with multilang filters (e.g: <span lang="de" class="multilang">Testkurs</span><span lang="en" class="multilang">Testcourse</span>)
      5. Ensure you're enrolled in the above course
      6. Create an assignment in the course
      7. Click on the assignment activity after the creation
      8. Click on the Settings tab of the assignment and change something in the Description
      9. Enable the 'Send content change notification' checkbox and click 'Save and return to course'
      10. Run cron: 

        php admin/cli/cron.php

      11. Check the email inbox and confirm the notification Title and Content has "Testcourse content change"  OR  "Inhalt geändert in Testkurs"
      Show
      Requirements mailcatcher (or similar or working mail) to intercept mails An additional language pack as German installed in your Moodle instance.   Testing instructions Log in to Moodle instance and go to Notification settings Ensure that 'Course content changes' under System notifications have both System and Email notifications enabled Access to "Manage filters" and, enable the "Multi-language content" filter for both, Content and headings. Create a course where the coursename is defined with multilang filters ( e.g: <span lang="de" class="multilang">Testkurs</span><span lang="en" class="multilang">Testcourse</span> ) Ensure you're enrolled in the above course Create an assignment in the course Click on the assignment activity after the creation Click on the Settings tab of the assignment and change something in the Description Enable the 'Send content change notification' checkbox and click 'Save and return to course' Run cron:  php admin/cli/cron.php Check the email inbox and confirm the notification Title and Content has "Testcourse content change"  OR   "Inhalt geändert in Testkurs"

    Description

      The course content change notification subject line does not process multilang filter correctly and shows the tags in emails and system notifications.

       

      Attachments

        1. MDL-77833.png
          MDL-77833.png
          257 kB
        2. pic1.png
          pic1.png
          53 kB

        Activity

          People

            A_Deb Amrita Deb Dutta
            A_Deb Amrita Deb Dutta
            Luca Bösch Luca Bösch
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              24/Apr/23

              Time Tracking

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