small fix for member frontend

This commit is contained in:
Harry Bomrah 2017-03-06 20:55:45 +08:00
parent 6ea0b832a3
commit c0686edf1d
1 changed files with 13 additions and 9 deletions

View File

@ -40,7 +40,11 @@ class Diploma
end
def self.get_plugin_datas_to_member(datas)
page = Page.where(:module => "personal_honor").first rescue nil
if !page.nil? && !page.custom_array_field.blank?
fields_to_show = page.custom_array_field
else
fields_to_show = [
"country",
"school_name",
@ -48,7 +52,7 @@ class Diploma
"degree",
"duration"
]
end
fields_to_remove = []
pd_title = []