diff --git a/app/assets/javascripts/app/controllers/widget/organization.coffee b/app/assets/javascripts/app/controllers/widget/organization.coffee index 37befa1f0..77ba6b3ad 100644 --- a/app/assets/javascripts/app/controllers/widget/organization.coffee +++ b/app/assets/javascripts/app/controllers/widget/organization.coffee @@ -32,7 +32,7 @@ class App.WidgetOrganization extends App.Controller if ( organization[name]? || attributeConfig.tag is 'richtext' ) && attributeConfig.shown # do not show firstname and lastname / already show via diplayName() - if name isnt 'name' + if name isnt 'name' && organization[name] isnt '' organizationData.push attributeConfig # insert userData diff --git a/app/assets/javascripts/app/controllers/widget/user.coffee b/app/assets/javascripts/app/controllers/widget/user.coffee index 5131cd0a8..07631843c 100644 --- a/app/assets/javascripts/app/controllers/widget/user.coffee +++ b/app/assets/javascripts/app/controllers/widget/user.coffee @@ -31,10 +31,10 @@ class App.WidgetUser extends App.Controller name = nameNew # add to show if value exists - if ( user[name] || attributeConfig.tag is 'richtext' ) && attributeConfig.shown + if ( user[name]? || attributeConfig.tag is 'richtext' ) && attributeConfig.shown # do not show firstname and lastname / already show via displayName() - if name isnt 'firstname' && name isnt 'lastname' && name isnt 'organization' + if name isnt 'firstname' && name isnt 'lastname' && name isnt 'organization' && user[name] isnt '' userData.push attributeConfig if user.preferences diff --git a/app/assets/javascripts/app/views/widget/user.jst.eco b/app/assets/javascripts/app/views/widget/user.jst.eco index fbb0a0215..b38bea0c2 100644 --- a/app/assets/javascripts/app/views/widget/user.jst.eco +++ b/app/assets/javascripts/app/views/widget/user.jst.eco @@ -3,7 +3,7 @@