diff --git a/app/controllers/members_controller.rb b/app/controllers/members_controller.rb index 4aab9bb..658af24 100644 --- a/app/controllers/members_controller.rb +++ b/app/controllers/members_controller.rb @@ -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 diff --git a/app/models/member_profile.rb b/app/models/member_profile.rb index 1b9ab40..2bbaf5b 100644 --- a/app/models/member_profile.rb +++ b/app/models/member_profile.rb @@ -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