forked from saurabh/orbit4-5
fixes in member profile show page
This commit is contained in:
parent
49f7d2192d
commit
e11581c0ee
|
@ -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
|
||||
|
|
|
@ -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