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

mod_forum: Fix get_unmailed_posts logic for timed posts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.4, 3.0.2
    • Fix Version/s: 2.9.5, 3.0.3
    • Component/s: Forum
    • Labels:

      Description

      The forum cron checks posts to be sent to users, and only checks for posts created in the last two days - ostensibly to protect users from a flood of emails if the cron hasn't been running for several days. However, if a discussion has been marked as 'Hidden until ...' the cron is checking the post created date first, and then checking if the discussion is currently hidden. This means that posts created more than two days previous will never be notified to the student, regardless of the 'Hidden until' date.

      This change checks if the post has been created in the last two days OR if the display date occurred within the last two days, then processes it as normal (digest or immediate mailout).

        Attachments

          Activity

            People

            Assignee:
            tlock Tim Lock
            Reporter:
            tlock Tim Lock
            Peer reviewer:
            Andrew Nicols
            Integrator:
            David Monllaó
            Tester:
            CiBoT
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Mar/16