Update journal_paper.rb

fix error?
This commit is contained in:
chiu 2019-08-19 15:55:16 +08:00
parent d3b6b15931
commit a5a3008a5e
1 changed files with 1 additions and 1 deletions

View File

@ -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("")