From c8dddb5ccba4067884ce41f495cba2ae0bb71e24 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 19 Jan 2017 13:47:40 +0800 Subject: [PATCH] MDL-57639 mod_forum: Update to use correct variable name This addresses a regression where unnecessary attributes were removed from the old variable. This one was missed. --- mod/forum/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 79168f557cd..8d087bb2fcd 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -4458,7 +4458,7 @@ function forum_update_post($newpost, $mform, $unused = null) { forum_add_attachment($post, $forum, $cm, $mform); if (forum_tp_can_track_forums($forum) && forum_tp_is_tracked($forum)) { - forum_tp_mark_post_read($USER->id, $post, $post->forum); + forum_tp_mark_post_read($USER->id, $post, $forum->id); } // Let Moodle know that assessable content is uploaded (eg for plagiarism detection)