Project

General

Profile

Actions

Defect #28393

closed

Sort issue custom fields by position in tracker UI

Added by Gregor Schmidt over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Custom fields
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
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.


Files

0001-Sort-issue-custom-fields-by-position-in-tracker-view.patch (1.54 KB) 0001-Sort-issue-custom-fields-by-position-in-tracker-view.patch Gregor Schmidt, 2018-03-21 14:39
custom-fields@2x.png (28 KB) custom-fields@2x.png Go MAEDA, 2018-03-21 15:09
before@2x.png (46.6 KB) before@2x.png Go MAEDA, 2018-03-21 15:09
after@2x.png (46.6 KB) after@2x.png Go MAEDA, 2018-03-21 15:09
Actions

Also available in: Atom PDF