プロジェクト

全般

プロフィール

Vote #72328

完了

Custom fields of type version not proper handled in receiving e-mails

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email receiving_29
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
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
ステータス-->[Closed]

説明

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.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリEmail receiving_29 にセット
  • 対象バージョン2.1.0_47 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0