FIX: Fields should be ordered by position on preferences page
This commit is contained in:
parent
7ffdc43091
commit
4f85420088
|
@ -30,7 +30,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
|||
if (!this.get('currentUser.staff')) {
|
||||
siteUserFields = siteUserFields.filterProperty('editable', true);
|
||||
}
|
||||
return siteUserFields.sortBy('field_type').map(function(field) {
|
||||
return siteUserFields.sortBy('position').map(function(field) {
|
||||
const value = userFields ? userFields[field.get('id').toString()] : null;
|
||||
return Ember.Object.create({ value, field });
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue