Project

General

Profile

Actions

Defect #28393

closed

Sort issue custom fields by position in tracker UI

Added by Gregor Schmidt about 6 years ago. Updated about 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 #1

Updated by Go MAEDA about 6 years ago

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

Before:

After:

Actions #2

Updated by Go MAEDA about 6 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.

Actions

Also available in: Atom PDF