diff --git a/app/models/journal_paper.rb b/app/models/journal_paper.rb index 3110104..6ca2312 100644 --- a/app/models/journal_paper.rb +++ b/app/models/journal_paper.rb @@ -210,9 +210,9 @@ class JournalPaper when "file" files = [] self.journal_paper_files.each do |file| - url = file.journal_file.url + url = (file.journal_file.url rescue "") title = (file.title.blank? ? File.basename(file.journal_file.path) : file.title) - files << "