MDL-48720 mod_forum: Only copy discussion preferences when moving posts
commit9a220d7976ee428286241d236a0d245ebf7c40a6
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 31 Dec 2014 03:03:07 +0000 (31 11:03 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 21 Jan 2015 04:42:41 +0000 (21 12:42 +0800)
tree1ec644bcbd469e1f74453c19d01f38d3987ad2ae
parented46f0deb16e3504cc8dedcb44c0d55fdc4968b3
MDL-48720 mod_forum: Only copy discussion preferences when moving posts

Rather than adding discussion preferences to a user based upon their
subscription to the source forum, only respect any actively selected
preference. That is to say that:
* if a user has opted into a discussion and following a move would be
  unsubscribed, re-subscribe them;
* if a user has opted out of a discussion and following a move would be
  subscribed once more, unsubscribe them; and
* if a user has not made an active choice, follow the discussion preference
  for the target forum.
mod/forum/discuss.php