Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: MOODLE_401_STABLE
Choose a base branch
from

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