プロジェクト

全般

プロフィール

Vote #79216

完了

Sort issue custom fields by position in tracker UI

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

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

0%

予定工数:
category_id:
14
version_id:
138
issue_org_id:
28393
author_id:
14446
assigned_to_id:
332
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

When configuring issue custom fields for a single tracker, the custom fields are order by creation date. Instead they should be ordered by their position.

Attached you may find a patch, implementing the desired behavior. Furthermore, it's changing the line @IssueCustomField.all.sort@ to @IssueCustomField.sorted@ in the @TrackersController@. The latter will sort the records within the DB, which should be slightly faster.


journals

Confirmed this issue. Setting target version to 3.3.7.
*
Custom fields:*
!{border: 1px solid #ccc; width: 777px}.custom-fields@2x.png!

*Before:*
!{border: 1px solid #ccc; width: 777px}.before@2x.png!

*After:*
!{border: 1px solid #ccc; width: 777px}.after@2x.png!

--------------------------------------------------------------------------------
Committed the patch to the trunk and merged to stable branches. Thank you for the fix.
--------------------------------------------------------------------------------

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

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

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

いいね!0
いいね!0