FIX: User fields disappeared on user profile
This commit is contained in:
parent
3a9907f392
commit
6b299d4c81
|
@ -46,7 +46,7 @@ export default ObjectController.extend(CanCheckEmails, {
|
||||||
}.property('model.can_be_deleted', 'model.can_delete_all_posts'),
|
}.property('model.can_be_deleted', 'model.can_delete_all_posts'),
|
||||||
|
|
||||||
publicUserFields: function() {
|
publicUserFields: function() {
|
||||||
var siteUserFields = this.site.get('model.user_fields');
|
var siteUserFields = this.site.get('user_fields');
|
||||||
if (!Ember.isEmpty(siteUserFields)) {
|
if (!Ember.isEmpty(siteUserFields)) {
|
||||||
var userFields = this.get('model.user_fields');
|
var userFields = this.get('model.user_fields');
|
||||||
return siteUserFields.filterProperty('show_on_profile', true).sortBy('id').map(function(uf) {
|
return siteUserFields.filterProperty('show_on_profile', true).sortBy('id').map(function(uf) {
|
||||||
|
|
Loading…
Reference in New Issue