Defect #28393
Sort issue custom fields by position in tracker UI
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % 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.
Associated revisions
Fix: Sort issue custom fields by position in tracker views (#28393).
Patch by Gregor Schmidt.
History
#1
Updated by Go MAEDA over 4 years ago
- File custom-fields@2x.png added
- File before@2x.png added
- File after@2x.png added
- Tracker changed from Feature to Defect
- Status changed from New to Confirmed
- Target version set to 3.3.7
Confirmed this issue. Setting target version to 3.3.7.
Custom fields:
Before:
After:
#2
Updated by Go MAEDA over 4 years 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.