forked from saurabh/personal-diploma
small fix for member frontend
This commit is contained in:
parent
6ea0b832a3
commit
c0686edf1d
|
@ -40,15 +40,19 @@ class Diploma
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.get_plugin_datas_to_member(datas)
|
def self.get_plugin_datas_to_member(datas)
|
||||||
|
page = Page.where(:module => "personal_honor").first rescue nil
|
||||||
fields_to_show = [
|
|
||||||
"country",
|
if !page.nil? && !page.custom_array_field.blank?
|
||||||
"school_name",
|
fields_to_show = page.custom_array_field
|
||||||
"department",
|
else
|
||||||
"degree",
|
fields_to_show = [
|
||||||
"duration"
|
"country",
|
||||||
]
|
"school_name",
|
||||||
|
"department",
|
||||||
|
"degree",
|
||||||
|
"duration"
|
||||||
|
]
|
||||||
|
end
|
||||||
fields_to_remove = []
|
fields_to_remove = []
|
||||||
|
|
||||||
pd_title = []
|
pd_title = []
|
||||||
|
|
Loading…
Reference in New Issue