fix error

This commit is contained in:
chiu 2020-05-15 19:06:21 +08:00
parent ca16904b1f
commit 749e9d6fbf
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class Patent
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :application_date => "desc", :publish_date => "desc") }
def member_profile():
super || (MemberProfile.find(self.member_profile_id) rescue nil)
(super || MemberProfile.find(self.member_profile_id)) rescue nil
end
def get_plugin_data(fields_to_show)
plugin_datas = []