parent
f1fa503b8b
commit
67e928b4e9
|
@ -192,8 +192,8 @@ class WritingConference
|
|||
files = []
|
||||
self.writing_conference_files.each do |conference_files|
|
||||
url = conference_files.file.url
|
||||
title = (conference_files.title.blank? ? File.basename(conference_files.file.path) : conference_files.title)
|
||||
files << "<li><a href='#{url}'' target='_blank'>#{title}</li>"
|
||||
title = ((conference_files.title.blank? ? File.basename(conference_files.file.path) : conference_files.title) rescue "")
|
||||
files << (url.nil? ? "" : "<li><a href='#{url}'' target='_blank'>#{title}</li>")
|
||||
end
|
||||
value = files.join("")
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue