@@ -356,7 +356,8 module IssuesHelper | |||||
356 | if detail.old_value && detail.value.blank? && detail.property != 'relation' |
|
356 | if detail.old_value && detail.value.blank? && detail.property != 'relation' | |
357 | old_value = content_tag("del", old_value) |
|
357 | old_value = content_tag("del", old_value) | |
358 | end |
|
358 | end | |
359 |
if detail.property == 'attachment' && |
|
359 | if detail.property == 'attachment' && value.present? && | |
|
360 | atta = detail.journal.journalized.attachments.detect {|a| a.id == detail.prop_key.to_i} | |||
360 | # Link to the attachment if it has not been removed |
|
361 | # Link to the attachment if it has not been removed | |
361 | value = link_to_attachment(atta, :download => true, :only_path => options[:only_path]) |
|
362 | value = link_to_attachment(atta, :download => true, :only_path => options[:only_path]) | |
362 | if options[:only_path] != false && atta.is_text? |
|
363 | if options[:only_path] != false && atta.is_text? |
General Comments 0
You need to be logged in to leave comments.
Login now