Skip to content

Forum Posts feed: Add forum discussion start time check#281

Open
aneno-m-e wants to merge 1 commit intoopen-lms-open-source:MOODLE_401_STABLEfrom
aneno-m-e:MOODLE_401_STABLE
Open

Forum Posts feed: Add forum discussion start time check#281
aneno-m-e wants to merge 1 commit intoopen-lms-open-source:MOODLE_401_STABLEfrom
aneno-m-e:MOODLE_401_STABLE

Conversation

@aneno-m-e
Copy link

@aneno-m-e aneno-m-e commented May 24, 2024

Discussions with a start time in the future are visible in the 'Forum Posts' feed on the 'My Courses' page. When a student clicks on the discussion title, they are presented with an error message, which is expected as the discussion is not yet available but not ideal as a user experience.

This PR adds a WHERE clause checking that the discussion timestart is in the past, thus preventing the posts from showing in the feed if the start time has not yet been reached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant