Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.0.5, 2.1.2, 2.2
-
Component/s: Forum
-
Environment:qa.moodle.net
-
Database:Any
-
Testing Instructions:
-
Affected Branches:MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
-
Fixed Branches:MOODLE_20_STABLE, MOODLE_21_STABLE
-
Pull from Repository:
-
Pull Master Branch:wip-
MDL-30289-master -
Pull Master Diff URL:
Description
This was discovered in MDLQA-1191. When splitting a discussion the following error is displayed:
Coding problem: $PAGE->context was not set. You may have forgotten to call require_login() or $PAGE->set_context(). The page may not display correctly as a result
line 345 of /lib/pagelib.php: call to debugging()
line 617 of /lib/pagelib.php: call to moodle_page->magic_get_context()
line 1216 of /lib/weblib.php: call to moodle_page->__get()
line 463 of /mod/forum/post.php: call to format_string()
This patch seems to fix it (I'm not totally clear on the mechanics of $PAGE): https://github.com/mackensen/moodle/compare/master...MDL-30289
Attachments
Issue Links
- blocks
-
MDLQA-1191 CLONE - Teachers can split discussions and move discussions between forums in the same course
-
- Passed
-