From 934b0549740a548826678a30a38b8d1271988847 Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 25 May 2023 14:03:24 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=BE=A9=E9=8C=AF=E8=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/journal_paper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/journal_paper.rb b/app/models/journal_paper.rb index caaee3b..daad0b6 100644 --- a/app/models/journal_paper.rb +++ b/app/models/journal_paper.rb @@ -55,6 +55,7 @@ class JournalPaper scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :publication_date => "desc", :id=>"desc") } alias_method :member_profiles, :member_profile + alias_method :org_member_profile=, :member_profile= def create_link title = [] @@ -218,7 +219,7 @@ class JournalPaper end def member_profile=(mp) - super(mp.class != MemberProfile ? mp : [mp]) + org_member_profile=(mp.class != MemberProfile ? mp : [mp]) end def get_plugin_field_data(field)