diff --git a/app/models/meeting.rb b/app/models/meeting.rb index 4d2838f605..b938f3c98f 100644 --- a/app/models/meeting.rb +++ b/app/models/meeting.rb @@ -50,10 +50,6 @@ class Meeting < ActiveRecord::Base title end - def recipients - participants.collect(&:mail) - end - protected def after_initialize diff --git a/config/locales/de.yml b/config/locales/de.yml index 9a4e1c995d..6b3229397f 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -8,6 +8,7 @@ de: label_meeting_close: "Schließen" label_meeting_open: "Öffnen" label_meeting_agenda_close: "Agenda schließen um mit dem Protokoll zu beginnen" + label_notify: "Zur Einsicht verschicken" field_participants: "Teilnehmer" field_participants_invited: "Eingeladen" field_participants_attended: "Anwesend" diff --git a/config/locales/en.yml b/config/locales/en.yml index 9dec35031b..ee9dff0afd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -8,6 +8,7 @@ en: label_meeting_close: "Close" label_meeting_open: "Open" label_meeting_agenda_close: "Close the agenda to begin the Minutes" + label_notify: "Send for review" field_participants: "Participants" field_participants_invited: "Invitees" field_participants_attended: "Attendants" diff --git a/lib/redmine_meeting/patch_redmine_classes.rb b/lib/redmine_meeting/patch_redmine_classes.rb index 18725fde1d..5714a7cc48 100644 --- a/lib/redmine_meeting/patch_redmine_classes.rb +++ b/lib/redmine_meeting/patch_redmine_classes.rb @@ -27,8 +27,8 @@ module Plugin redmine_headers 'Project' => meeting.project.identifier, 'Meeting-Id' => meeting.id message_id minutes - cc meeting.recipients - subject "[#{meeting.project.name}] #{l(:label_minutes)}: #{meeting.title}" + cc meeting.watcher_recipients # works only in production environment + subject "[#{meeting.project.name}] #{l(:label_meeting_minutes)}: #{meeting.title}" body :minutes => minutes, :minutes_url => url_for(:controller => 'meetings', :action => 'show', :id => meeting, :tab => 'minutes'), :meeting_url => url_for(:controller => 'meetings', :action => 'show', :id => meeting)