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

@ -50,7 +50,7 @@ class MembersController < ApplicationController
# end
elsif intro.brief_intro == true
pd = []
pd << { "data_title" => intro.text.html_safe}
pd << {"data_title" => intro.text.html_safe}
{
"plugin_data" => pd,
"plugin_title" => plugin.app_name.titleize

View File

@ -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