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

Assignment notifications contain poorly formatted assignment/course names

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5 regressions, 4.5.4, 5.0.1
    • Assignment
    • MOODLE_405_STABLE, MOODLE_500_STABLE
    • MDL-85684-405
    • MDL-85684-500
    • Hide
      1. Log in as admin
      2. Navigate to Plugins > Filters > Manage filters in site administration
      3. Set Multi-Language content to On & Apply to: Content and headings
      4. Create a test user
      5. Create a new course:
        • Course full name

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

      6. Create a new assignment in the course:
        • Assignment name:

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

        • Due date: <1 hour ago>
      7. Enrol test user as student in course
      8. Log out
      9. Run this scheduled task:

        $ php admin/cli/scheduled_task.php --execute=\\mod_assign\\task\\queue_all_assignment_overdue_notification_tasks 
        

      10. Run cron

        php admin/cli/cron.php
        

      11. Log in as test user
      12. Open notifications drawer
      13. Press View full notification for the Overdue: Assignment (EN) notification
      14. Confirm both the assignment and course name are correctly formatted in the notification body
      15. Confirm the link Go to: Assignment (EN) link is correctly formatted
      Show
      Log in as admin Navigate to Plugins > Filters > Manage filters in site administration Set Multi-Language content to On & Apply to: Content and headings Create a test user Create a new course: Course full name <span class="multilang" lang="de">Course (DE)</span><span class="multilang" lang="en">Course (EN)</span> Create a new assignment in the course: Assignment name: <span class="multilang" lang="de">Assignment (DE)</span><span class="multilang" lang="en">Assignment (EN)</span> Due date: <1 hour ago> Enrol test user as student in course Log out Run this scheduled task: $ php admin/cli/scheduled_task.php --execute=\\mod_assign\\task\\queue_all_assignment_overdue_notification_tasks Run cron php admin/cli/cron.php Log in as test user Open notifications drawer Press View full notification for the Overdue: Assignment (EN) notification Confirm both the assignment and course name are correctly formatted in the notification body Confirm the link Go to: Assignment (EN) link is correctly formatted
    • Hide

      Code verified against automated checks.

      Checked MDL-85684 using repository: https://github.com/paulholden/moodle/

      More information about this report

      Built on: Fri Jun 6 00:35:52 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-85684 using repository: https://github.com/paulholden/moodle/ MOODLE_405_STABLE (0 errors / 0 warnings) [branch: MDL-85684-405 | CI Job ] MOODLE_500_STABLE (0 errors / 0 warnings) [branch: MDL-85684-500 | CI Job ] main (0 errors / 0 warnings) [branch: MDL-85684 | CI Job ] More information about this report Built on: Fri Jun 6 00:35:52 UTC 2025

      Follow the instructions from MDL-79733, but while using multi-language formatted content for both course and assignment names

      User receives the following notification:

      Along with this equally confusing email:

            pholden Paul Holden
            pholden Paul Holden
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

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