parent
d3b6b15931
commit
a5a3008a5e
|
@ -211,7 +211,7 @@ class JournalPaper
|
|||
files = []
|
||||
self.journal_paper_files.each do |file|
|
||||
url = (file.journal_file.url rescue "")
|
||||
title = (file.title.blank? ? File.basename(file.journal_file.path) : file.title)
|
||||
title = ((file.title.blank? ? File.basename(file.journal_file.path) : file.title) rescue "")
|
||||
files << (url=="" ? "" : "<li><a href='#{url}'' target='_blank'>#{title}</li>")
|
||||
end
|
||||
value = files.join("")
|
||||
|
|
Loading…
Reference in New Issue