Index: openacs-4/packages/attachments/tcl/attachments-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attachments/tcl/attachments-procs.tcl,v diff -u -r1.23 -r1.23.2.1 --- openacs-4/packages/attachments/tcl/attachments-procs.tcl 28 Jun 2018 14:22:42 -0000 1.23 +++ openacs-4/packages/attachments/tcl/attachments-procs.tcl 9 Jul 2019 17:42:30 -0000 1.23.2.1 @@ -201,6 +201,13 @@ set label [expr {[content::extlink::is_extlink -item_id $item_id] ? [content::extlink::name -item_id $item_id] : [fs::get_object_name -object_id $item_id]}] + # + # Check directly in the content repository for the title, in case + # the attachment is not in the file storage + # + if {$label eq $item_id} { + set label [content::item::get_title -item_id [content::revision::item_id -revision_id $item_id]] + } set url [goto_attachment_url \ -object_id $object_id \ -attachment_id $item_id \