]> source.dussan.org Git - redmine.git/commitdiff
Fix that custom fields in users CSV are not ordered by position value (#33126).
authorGo MAEDA <maeda@farend.jp>
Sat, 9 May 2020 00:32:49 +0000 (00:32 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 9 May 2020 00:32:49 +0000 (00:32 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19767 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/users_helper.rb

index 8474f3c4b4a9d4e556deef2ca5a0b9baea1b54a3..c9e4e198fa9f5f4429b82917104b117991dfac6b 100644 (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)