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

Analytics upcoming activities due notification and prediction doesn't handle tab in course title

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE, MOODLE_404_STABLE, MOODLE_405_STABLE
    • Hide
      1. Log in as admin
      2. Go to site admin > development > Make test course
      3. Create a XS course with a title containing a tabulation
      4. Go to participants, a student should appear there. Make sure insights notifications are all turned ON in the notification preferences for this user.
      5. Edit the assignment activity and set its due date to +5 days from today
      6. Go to site admin > analytics > analytics settings and untick only cli setting
      7. Go to site admin > analytics > analytics models
      8. If the Upcoming activities due model is disabled click on Actions > Enable for Upcoming activities due model
      9. Click on Actions > Clear predictions for the Upcoming activities due model
      10. Click on Actions > Execute scheduled analysis from the Upcoming activities due model
      11. Login as the student in the course
      12. Click on the notifications icon and click on "View full notification" for the top item
      13. You should see the notification displaying Course: {$a->course} Instead of the course name (see course_name_broken.png)
      Show
      Log in as admin Go to site admin > development > Make test course Create a XS course with a title containing a tabulation Go to participants, a student should appear there. Make sure insights notifications are all turned ON in the notification preferences for this user. Edit the assignment activity and set its due date to +5 days from today Go to site admin > analytics > analytics settings and untick only cli setting Go to site admin > analytics > analytics models If the Upcoming activities due model is disabled click on Actions > Enable for Upcoming activities due model Click on Actions > Clear predictions for the Upcoming activities due model Click on Actions > Execute scheduled analysis from the Upcoming activities due model Login as the student in the course Click on the notifications icon and click on "View full notification" for the top item You should see the notification displaying Course: {$a->course} Instead of the course name (see course_name_broken.png)

      If by any reason, the title of a course contain a "tab", the notification will break and it will display {$a->course} instead of the title of the course

        1. course_name_broken.png
          15 kB
          Guillaume BARAT
        2. MDL-81473.png
          171 kB
          Kim Jared Lucas
        3. Moodle version.png
          15 kB
          Guillaume BARAT
        4. a proper tabulation.png
          2 kB
          Guillaume BARAT
        5. course name containing a tabulation.png
          15 kB
          Guillaume BARAT
        6. tabulation and not spaces.png
          16 kB
          Guillaume BARAT

            Unassigned Unassigned
            guillaumeb87 Guillaume BARAT
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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