-
Bug
-
Resolution: Fixed
-
Major
-
2.2, 2.2.3
-
None
-
MOODLE_22_STABLE
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
wip-mdl-33102
-
When I run the blog level upgrade utility in moodle 2.2, the userids of all blog posters are replaced with my user ID. (I am the logged in user who is running the utility.) As a result, every migrated post has my name and avatar on it.
I believe I found a mistake in the code, and a simple fix.
Line 124 of admin/tool/bloglevelupgrade/index.php:
change:
$discussionid = forum_add_discussion($discussion, null, $message);
to:
$discussionid = forum_add_discussion($discussion, null, $message, $blogentry->userid);
Also see:
http://moodle.org/mod/forum/discuss.php?d=201802
At least one other Moodler has experienced this issue.