fix show language
This commit is contained in:
parent
e9215925cd
commit
fc95e27412
|
@ -168,11 +168,11 @@ class WritingConference
|
||||||
end
|
end
|
||||||
value = value.join(" / ")
|
value = value.join(" / ")
|
||||||
when "publication_date"
|
when "publication_date"
|
||||||
value = self.publication_date.to_date.strftime("%Y-%m-%d") rescue ""
|
value = self.publication_date.strftime("%Y-%m-%d") rescue ""
|
||||||
when "abstract"
|
when "abstract"
|
||||||
value = nl2br(self.abstract)
|
value = nl2br(self.abstract)
|
||||||
when "language"
|
when "language"
|
||||||
value = I18n.t(self.language) rescue ""
|
value = I18n.t(self.language) if !self.language.nil? rescue ""
|
||||||
when "file"
|
when "file"
|
||||||
files = []
|
files = []
|
||||||
self.writing_conference_files.each do |conference_files|
|
self.writing_conference_files.each do |conference_files|
|
||||||
|
|
Loading…
Reference in New Issue