]> source.dussan.org Git - redmine.git/commitdiff
Merged r17432 from trunk to 3.4-stable (#29191).
authorGo MAEDA <maeda@farend.jp>
Fri, 6 Jul 2018 01:38:33 +0000 (01:38 +0000)
committerGo MAEDA <maeda@farend.jp>
Fri, 6 Jul 2018 01:38:33 +0000 (01:38 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@17433 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mail_handler.rb
test/unit/mail_handler_test.rb

index 518e8c84b234758e742ddd434c486265fa0da964..9377e00d9939bcbf91d0972822f05419966ace19 100755 (executable)
@@ -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']
index 04da637c26fae87bebff8cccc525b2209a8f5318..2d02cf0ed42f07f3297ddf9d1037a89f1e3d736b 100644 (file)
@@ -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