diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-10 09:07:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-10 09:07:36 +0000 |
commit | d640f7b249b92fe98eff5727bc635a6fd65598bd (patch) | |
tree | f4c24783cd3b60fa2d56dbe569ffcaf373c00f06 /app/models | |
parent | f8a9a78ecfa50d53ca8416d296af8a02da8eb7d7 (diff) | |
download | redmine-d640f7b249b92fe98eff5727bc635a6fd65598bd.tar.gz redmine-d640f7b249b92fe98eff5727bc635a6fd65598bd.zip |
Adds private issue option to receiving emails (#8424).
git-svn-id: http://svn.redmine.org/redmine/trunk@14262 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/mail_handler.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index 408932d57..78cff699b 100644 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -69,6 +69,9 @@ class MailHandler < ActionMailer::Base %w(allow_override unknown_user no_permission_check no_account_notice default_group).each do |option| options[option.to_sym] = env[option] if env[option] end + if env['private'] + options[:issue][:is_private] = '1' + end options end @@ -205,6 +208,7 @@ class MailHandler < ActionMailer::Base end issue.description = cleaned_up_text_body issue.start_date ||= Date.today if Setting.default_issue_start_date_to_creation_date? + issue.is_private = (handler_options[:issue][:is_private] == '1') # add To and Cc as watchers before saving so the watchers can reply to Redmine add_watchers(issue) |