プロジェクト

全般

プロフィール

Vote #71025

完了

Custom values deleted before issue submit

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

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

0%

予定工数:
category_id:
14
version_id:
39
issue_org_id:
9737
author_id:
45715
assigned_to_id:
1
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
30
ステータス-->[Closed]

説明

Working on a custom implementation of RedMine, we found that if the user tries to change the tracker of a issue but do not save the modifications after all, custom values that belongs to the old tracker, but not to the new one, are removed. No history neither.

How to reproduce it:

create tracker 1 with custom field A

create tracker 2 with custom field B

create an issue with tracker 1, assign a value to custom field A

edit the issue

change tracker to tracker 2

DO NOT SAVE and refresh the page

custom field A is empty

The attached patch worked for us, it needs some testing though
I'm testing in redmine-1.1.1 but the code looks the same in newer versions


journals

--------------------------------------------------------------------------------
Good catch, this should be fixed in r8103.
--------------------------------------------------------------------------------
Why not 1.2?
--------------------------------------------------------------------------------
I didn't want to take any risk with 1.2-stable but yes, this should be merged.
--------------------------------------------------------------------------------
People, is it merged on 1.3-stable?
--------------------------------------------------------------------------------
Oh, sorry for the question.. r8114 merges on 1.3-stable, and the ticket is not closed because it is nor merged on 1.2 yet.
--------------------------------------------------------------------------------
Merged in 1.2-stable.
--------------------------------------------------------------------------------

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

  • カテゴリCustom fields_14 にセット
  • 対象バージョン1.2.3_39 にセット

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

いいね!0
いいね!0