MDL-65574 forum: discussion_list vault uses post table for author
authorRyan Wyllie <ryan@moodle.com>
Mon, 13 May 2019 07:03:26 +0000 (15:03 +0800)
committerRyan Wyllie <ryan@moodle.com>
Mon, 13 May 2019 07:03:26 +0000 (15:03 +0800)
commit9a6f29b019de7f914df84246e656e4c459fd7351
treee72d5dec89d450bb3415f39b55d2e787c8488f86
parent6a7451ff1b7f1f0ff84b920b1b6013e40fa8bad0
MDL-65574 forum: discussion_list vault uses post table for author

Update the discussion_list vault to use the first post record from
the posts table join to get the author of the first post rather
than relying on it's own "userid" column which can be incorrect in
the case of split discussions.
mod/forum/classes/local/vaults/discussion_list.php
mod/forum/tests/behat/split_forum_discussion.feature