Actions
Feature #2689
closedemail address of the project
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email notifications
Target version:
-
Start date:
2009-02-06
Due date:
% Done:
0%
Estimated time:
Resolution:
Description
I want to transmit the notice of addition and the change of the ticket to the e-mail address of the whole projects such as mailing lists.
model and view patch.
Index: app/models/mailer.rb =================================================================== --- app/models/mailer.rb (revision 2363) +++ app/models/mailer.rb (working copy) @@ -29,6 +29,7 @@ redmine_headers 'Issue-Assignee' => issue.assigned_to.login if issue.assigned_to recipients issue.recipients cc(issue.watcher_recipients - @recipients) + cc << issue.project.email if issue.project.email subject "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] (#{issue.status.name}) #{issue.subject}" body :issue => issue, :issue_url => url_for(:controller => 'issues', :action => 'show', :id => issue) @@ -44,6 +45,7 @@ recipients issue.recipients # Watchers in cc cc(issue.watcher_recipients - @recipients) + cc << issue.project.email if issue.project.email s = "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] " s << "(#{issue.status.name}) " if journal.new_value_for('status_id') s << issue.subject Index: app/views/projects/_form.rhtml =================================================================== --- app/views/projects/_form.rhtml (revision 2363) +++ app/views/projects/_form.rhtml (working copy) @@ -14,6 +14,7 @@ <br /><em><%= l(:text_length_between, 2, 20) %> <%= l(:text_project_identifier_info) %></em> <% end %></p> <p><%= f.text_field :homepage, :size => 60 %></p> +<p><%= f.text_field :email, :size => 60 %></p> <p><%= f.check_box :is_public %></p> <%= wikitoolbar_for 'project_description' %>
migration file.
class AddEmailToProject < ActiveRecord::Migration def self.up add_column :projects, :email, :string end def self.down remove_column :projects, :email end end
Related issues
Actions