mirror of
https://github.com/moodle/moodle.git
synced 2025-05-12 11:15:49 +02:00
Revert "MDL-32125 mod_forum: updating subscription mode not reflected"
This reverts commit bee9656ca96ec2e7d3fa08a2e956d62d29074174.
This commit is contained in:
parent
464df58811
commit
60cb1a5f70
@ -216,13 +216,6 @@ function forum_update_instance($forum, $mform) {
|
||||
|
||||
$DB->update_record('forum', $forum);
|
||||
|
||||
$modcontext = get_context_instance(CONTEXT_MODULE, $forum->coursemodule);
|
||||
if (($forum->forcesubscribe == FORUM_INITIALSUBSCRIBE) && ($oldforum->forcesubscribe <> $forum->forcesubscribe)) {
|
||||
$users = forum_get_potential_subscribers($modcontext, 0, 'u.id, u.email', '');
|
||||
foreach ($users as $user) {
|
||||
forum_subscribe($user->id, $forum->id);
|
||||
}
|
||||
}
|
||||
forum_grade_item_update($forum);
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user