Project

General

Profile

Defect #13376

Updated by Toshi MARUYAMA about 7 years ago

running on redmine 2.2.0.  
 Every time an issue is updated all the watchers are notified, regardless of their mail notification status. It looks like there is a problem in lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb line 73 : 

 <pre><code class="ruby"> 
 notified.reject! {|user| user.mail_notification == 'none'} 
 </code></pre> 

 quick fix : change it to  

 <pre><code class="ruby"> 
  
 notified.reject! {|user| (user.mail_notification == 'none' or user.mail_notification == 'only_assigned' or user.mail_notification == 'only_owner') } 
 </code></pre> 

 If I recall correctly this problem has already been solved in redmine 1.1.2. Is there any test to check that it does not appear any more? 

 Regards 

Back