Browse Source

Change textfield to textarea for "Exclude attachments by name" (#19903).

Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18476 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Go MAEDA 4 years ago
parent
commit
5755bed4e1
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      app/views/settings/_mail_handler.html.erb
  2. 1
    1
      test/unit/mail_handler_test.rb

+ 1
- 1
app/views/settings/_mail_handler.html.erb View File

@@ -10,7 +10,7 @@
<em class="info"><%= l(:text_line_separated) %></em>
</p>
<p>
<%= setting_text_field :mail_handler_excluded_filenames, :size => 60 %>
<%= setting_text_area :mail_handler_excluded_filenames %>
<label class="block">
<%= setting_check_box :mail_handler_enable_regex_excluded_filenames, :label => false %>
<%= l(:setting_mail_handler_enable_regex) %>

+ 1
- 1
test/unit/mail_handler_test.rb View File

@@ -1116,7 +1116,7 @@ class MailHandlerTest < ActiveSupport::TestCase
end

def test_attachments_that_match_mail_handler_excluded_filenames_should_be_ignored
with_settings :mail_handler_excluded_filenames => '*.vcf, *.jpg' do
with_settings :mail_handler_excluded_filenames => "*.vcf,\n *.jpg" do
issue = submit_email('ticket_with_attachment.eml', :issue => {:project => 'onlinestore'})
assert issue.is_a?(Issue)
assert !issue.new_record?

Loading…
Cancel
Save