Details
Description
Teachers, both editing and non-, are not able to reply to messages that have been posted by a member of a group, if the teacher is not a member of the same group. The teacher gets a "[[nopostdiscussion]]" error in this case.
There is a bug on line 147:
$modcontext = get_context_instance(CONTEXT_MODULE, $forum->id);
should be:
$modcontext = get_context_instance(CONTEXT_MODULE, $cm->id);
Furthermore, this line needs to be moved inside the 'if' block on line 159, so that $cm is actually defined.
This error has been reported elsewhere, specifically MDL-11304 where it is reported as fixed - but it does not appear to be so in MOODLE_18_STABLE.
The attached patch fixes the issue, and also patches the bug reported in MDL-10664.
Attachments
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
somebody fixed it already, thanks for the report.