Fix that custom fields in users CSV are not ordered by position value (#33126).

git-svn-id: http://svn.redmine.org/redmine/trunk@19767 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-05-09 00:32:49 +00:00
parent 6404ee5714
commit 46c82fc184

View File

@@ -84,7 +84,7 @@ module UsersHelper
'last_login_on',
'passwd_changed_on'
]
user_custom_fields = UserCustomField.all
user_custom_fields = UserCustomField.sorted
# csv header fields
csv << columns.map {|column| l('field_' + column)} + user_custom_fields.pluck(:name)