Details
Description
in mod/forum/subscription.php §144 uses
$users = get_course_users($course->id, 'firstname ASC, lastname ASC', $subscriberlist);
deprecated call. When using non standard roles that have capabilities for forum, no users are shown in subscription list.
following code :
$coursecontext = get_context_instance(CONTEXT_COURSE, $COURSE->id);
$users = get_users_by_capability($coursecontext, 'mod/forum:initialsubscriptions', '');
fixes the issue, at least as expected behaviour, but may have functionnal side effects I do not imagine.
do the get_group_users generate same problem ?
Issue Links
| This issue will help resolve: | ||||
| MDLSITE-618 | dev.moodle.org needs update to fix forum email problems |
|
|
|
| MDL-17673 | No emails sent after upgrading to 1.9.3, I had to downgrade |
|
|
|
| MDLSITE-590 | no email from moodle.org for 24 hours and counting .. |
|
|
|
The problem is that we should display only users with course:view privilege here, the patch would show also users not subscribed to course