Fixed: Custom fields of type version not proper handled in receiving e-mails (#11571).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10157 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -182,6 +182,18 @@ class MailHandlerTest < ActiveSupport::TestCase
|
||||
assert !issue.description.match(/^searchable field:/i)
|
||||
end
|
||||
|
||||
def test_add_issue_with_version_custom_fields
|
||||
field = IssueCustomField.create!(:name => 'Affected version', :field_format => 'version', :is_for_all => true, :tracker_ids => [1,2,3])
|
||||
|
||||
issue = submit_email('ticket_with_custom_fields.eml', :issue => {:project => 'ecookbook'}) do |email|
|
||||
email << "Affected version: 1.0\n"
|
||||
end
|
||||
assert issue.is_a?(Issue)
|
||||
assert !issue.new_record?
|
||||
issue.reload
|
||||
assert_equal '2', issue.custom_field_value(field)
|
||||
end
|
||||
|
||||
def test_add_issue_with_cc
|
||||
issue = submit_email('ticket_with_cc.eml', :issue => {:project => 'ecookbook'})
|
||||
assert issue.is_a?(Issue)
|
||||
|
||||
Reference in New Issue
Block a user