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