Project

General

Profile

Feature #2549 » news_to_all_members.diff

patch for redmine 1.0.1 - Bruno Medeiros, 2010-09-09 15:41

View differences:

app/models/mailer.rb (working copy)
def news_added(news)
redmine_headers 'Project' => news.project.identifier
message_id news
recipients news.recipients
recipients news.project.members.collect {|m| m.user}.collect {|u| u.mail}
subject "[#{news.project.name}] #{l(:label_news)}: #{news.title}"
body :news => news,
:news_url => url_for(:controller => 'news', :action => 'show', :id => news)
(1-1/2)