diff options
author | Go MAEDA <maeda@farend.jp> | 2018-07-06 01:38:33 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-07-06 01:38:33 +0000 |
commit | c999dacf0c54b3b948074b87247a68f68555d6e6 (patch) | |
tree | 687a7f88253026a74305f4c315ce055266f34633 | |
parent | a3570ff62b795ee4e68322f7888269d45acec9b1 (diff) | |
download | redmine-c999dacf0c54b3b948074b87247a68f68555d6e6.tar.gz redmine-c999dacf0c54b3b948074b87247a68f68555d6e6.zip |
Merged r17432 from trunk to 3.4-stable (#29191).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@17433 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rwxr-xr-x | app/models/mail_handler.rb | 2 | ||||
-rw-r--r-- | test/unit/mail_handler_test.rb | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index 518e8c84b..9377e00d9 100755 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -65,7 +65,7 @@ class MailHandler < ActionMailer::Base %w(project status tracker category priority assigned_to fixed_version).each do |option| options[:issue][option.to_sym] = env[option] if env[option] end - %w(allow_override unknown_user no_permission_check no_account_notice default_group project_from_subaddress).each do |option| + %w(allow_override unknown_user no_permission_check no_account_notice no_notification default_group project_from_subaddress).each do |option| options[option.to_sym] = env[option] if env[option] end if env['private'] diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index 04da637c2..2d02cf0ed 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -1128,12 +1128,13 @@ class MailHandlerTest < ActiveSupport::TestCase options = MailHandler.extract_options_from_env({ 'tracker' => 'defect', 'project' => 'foo', - 'unknown_user' => 'create' + 'unknown_user' => 'create', + 'no_notification' => '1' }) assert_equal({ :issue => {:tracker => 'defect', :project => 'foo'}, - :unknown_user => 'create' + :unknown_user => 'create', :no_notification => '1' }, options) end |