GitLab steht Mittwoch, den 23. September, zwischen 10:00 und 12:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit 5c1e3663 authored by maeda's avatar maeda

Fix: Allow to set no_notification option when receiving emails via IMAP or POP3 (#29191).

Patch by Holger Just.


git-svn-id: https://svn.redmine.org/redmine/trunk@17432 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent c282c67b
......@@ -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']
......
......@@ -1146,12 +1146,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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment