Defect #28393

Sort issue custom fields by position in tracker UI

Added by Gregor Schmidt 7 months ago. Updated 7 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Custom fields
Target version:3.3.7
Resolution:Fixed Affected version:

Description

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.

0001-Sort-issue-custom-fields-by-position-in-tracker-view.patch Magnifier (1.54 KB) Gregor Schmidt, 2018-03-21 14:39

custom-fields@2x.png (28 KB) Go MAEDA, 2018-03-21 15:09

before@2x.png (46.6 KB) Go MAEDA, 2018-03-21 15:09

after@2x.png (46.6 KB) Go MAEDA, 2018-03-21 15:09

Associated revisions

Revision 17237
Added by Go MAEDA 7 months ago

Fix: Sort issue custom fields by position in tracker views (#28393).

Patch by Gregor Schmidt.

Revision 17238
Added by Go MAEDA 7 months ago

Merged r17237 from trunk to 3.4-stable (#28393).

Patch by Gregor Schmidt.

Revision 17239
Added by Go MAEDA 7 months ago

Merged r17237 from trunk to 3.3-stable (#28393).

Patch by Gregor Schmidt.

History

#1 Updated by Go MAEDA 7 months ago

Confirmed this issue. Setting target version to 3.3.7.
Custom fields:

Before:

After:

#2 Updated by Go MAEDA 7 months ago

  • Status changed from Confirmed to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

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

Also available in: Atom PDF