Project

General

Profile

Defect #29191 ยป 0001-Allow-to-set-no_notification-option-when-receiving-m.patch

Holger Just, 2018-07-05 17:53

View differences:

app/models/mail_handler.rb
65 65
    %w(project status tracker category priority assigned_to fixed_version).each do |option|
66 66
      options[:issue][option.to_sym] = env[option] if env[option]
67 67
    end
68
    %w(allow_override unknown_user no_permission_check no_account_notice default_group project_from_subaddress).each do |option|
68
    %w(allow_override unknown_user no_permission_check no_account_notice no_notification default_group project_from_subaddress).each do |option|
69 69
      options[option.to_sym] = env[option] if env[option]
70 70
    end
71 71
    if env['private']
test/unit/mail_handler_test.rb
1146 1146
    options = MailHandler.extract_options_from_env({
1147 1147
      'tracker' => 'defect',
1148 1148
      'project' => 'foo',
1149
      'unknown_user' => 'create'
1149
      'unknown_user' => 'create',
1150
      'no_notification' => '1'
1150 1151
    })
1151 1152

  
1152 1153
    assert_equal({
1153 1154
      :issue => {:tracker => 'defect', :project => 'foo'},
1154
      :unknown_user => 'create'
1155
      :unknown_user => 'create', :no_notification => '1'
1155 1156
    }, options)
1156 1157
  end
1157 1158

  
    (1-1/1)