プロジェクト

全般

プロフィール

Vote #73326

完了

custom_field_values are not reloaded on #reload

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
30
version_id:
60
issue_org_id:
13119
author_id:
31712
assigned_to_id:
1
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Sometimes this method gives an empty array but there are some custom field values in my case for "a_issue". A workaround for that is to delete "@custom_field_values" before call the method like this:

a_issue.reset_custom_values!
a_issue.save_custom_field_values


journals

Can you provide a failing test?
--------------------------------------------------------------------------------
I hope this helps. Be aware I'm an ruby beginner ;o}
--------------------------------------------------------------------------------
r11349 makes your tests pass. #reload now reloads custom_field_values which is needed when you create a custom_field after the issue like in your test.
--------------------------------------------------------------------------------
Thank you very much - this fix the problem for me.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリCode cleanup/refactoring_30 にセット
  • 対象バージョン2.3.0_60 にセット

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

いいね!0
いいね!0