diff --git a/app/models/journal_paper.rb b/app/models/journal_paper.rb index 6ca2312..a19aeb1 100644 --- a/app/models/journal_paper.rb +++ b/app/models/journal_paper.rb @@ -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=="" ? "" : "