修復錯誤

This commit is contained in:
chiu 2023-05-25 14:03:24 +00:00
parent 8b18dded06
commit 934b054974
1 changed files with 2 additions and 1 deletions

View File

@ -55,6 +55,7 @@ class JournalPaper
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :publication_date => "desc", :id=>"desc") } 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 :member_profiles, :member_profile
alias_method :org_member_profile=, :member_profile=
def create_link def create_link
title = [] title = []
@ -218,7 +219,7 @@ class JournalPaper
end end
def member_profile=(mp) def member_profile=(mp)
super(mp.class != MemberProfile ? mp : [mp]) org_member_profile=(mp.class != MemberProfile ? mp : [mp])
end end
def get_plugin_field_data(field) def get_plugin_field_data(field)