forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-50993 forum: Display timed posts/discussions in a logical order
Users that don't have permission to view timed posts outside of the release time frame will have discussions that have entered the visible frame appear in an odd order from their point of view on the discussion list. Example: Discussion 1, modified 2015-01-01, hidden till 2015-01-03 Discussion 2, modified 2015-01-02, not hidden The standard 'modified descending' order means that D2 is listed at the top even after D1 becomes visible. When scanning the list of discussions for new posts, the user could be tricked into thinking they'd already read it. This fix instead takes into account the release time of the discussion when timed forum posts are enabled. I opted to use CASE statements to handle this instead of GREATEST as the latter is not supported by MSSQL.
- Loading branch information
1 parent
1b7bf43
commit 1e36665
Showing
3 changed files
with
97 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters