fixes in member profile show page

This commit is contained in:
Saurabh Bhatia 2014-06-26 10:00:55 +08:00
parent 49f7d2192d
commit e11581c0ee
2 changed files with 3 additions and 3 deletions

View File

@ -70,9 +70,9 @@ class MemberProfile
def get_attribute_value(attribute_field,attribute_type=nil) def get_attribute_value(attribute_field,attribute_type=nil)
if attribute_type.eql?("role") 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 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
end end