fixed empty name of member list
This commit is contained in:
parent
fdae7e4a2c
commit
0fa1b43f06
|
@ -156,7 +156,13 @@ class User
|
|||
if info
|
||||
first_name = get_attribute_values.detect {|value| value.key.to_s.eql?('first_name') }[I18n.locale.to_s] rescue nil
|
||||
last_name = get_attribute_values.detect {|value| value.key.to_s.eql?('last_name') }[I18n.locale.to_s] rescue nil
|
||||
return "#{last_name} #{first_name}"
|
||||
full_name = "#{last_name} #{first_name}"
|
||||
|
||||
if full_name.strip.empty?
|
||||
full_name = email
|
||||
end
|
||||
|
||||
return full_name
|
||||
else
|
||||
return nil
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue