Vote #72328
完了Custom fields of type version not proper handled in receiving e-mails
開始日:
2022/05/09
期日:
進捗率:
0%
予定工数:
Redmineorg_URL:
category_id:
29
version_id:
47
issue_org_id:
11571
author_id:
59678
assigned_to_id:
1
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
46
説明
The value of customer fields of type version not converted to a version id while processing a received e-mail. It must be done like the issue field fixed_version_id.
The code in mail_handler.rb should be something like:
# Returns a Hash of issue custom field values extracted from keywords in the email body
def custom_field_values_from_keywords(customized)
customized.custom_field_values.inject({}) do |h, v|
if value = get_keyword(v.custom_field.name, :override => true)
if v.custom_field.field_format == 'version'
value = customized.project.shared_versions.named(value).first.try(:id).to_s
end
h[v.custom_field.id.to_s] = value
end
h
end
end
The problem is also in the current trunk.
journals
--------------------------------------------------------------------------------
Fixed in r10157.
--------------------------------------------------------------------------------
いいね!0