forked from saurabh/orbit4-5
fixes in member profile show page
This commit is contained in:
parent
49f7d2192d
commit
e11581c0ee
|
@ -70,9 +70,9 @@ class MemberProfile
|
|||
|
||||
def get_attribute_value(attribute_field,attribute_type=nil)
|
||||
if attribute_type.eql?("role")
|
||||
AttributeValue.find_by(attribute_field_id: attribute_field.id)
|
||||
AttributeValue.find_by(attribute_field_id: attribute_field.id, member_profile_id: self.id)
|
||||
else
|
||||
MemberProfileFieldValue.find_by(member_profile_field_id: attribute_field.id)
|
||||
MemberProfileFieldValue.find_by(member_profile_field_id: attribute_field.id, member_profile_id: self.id)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue