Index: openacs-4/packages/attachments/www/go-to-attachment.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attachments/www/go-to-attachment.xql,v diff -u -N -r1.4 -r1.4.8.1 --- openacs-4/packages/attachments/www/go-to-attachment.xql 28 Aug 2003 09:41:46 -0000 1.4 +++ openacs-4/packages/attachments/www/go-to-attachment.xql 31 Mar 2007 07:05:32 -0000 1.4.8.1 @@ -10,12 +10,13 @@ - + - select r.title - from cr_revisions r, cr_items i + select r.title, m.file_extension, r.mime_type + from cr_revisions r, cr_items i, cr_mime_types m where i.item_id = :attachment_id and r.revision_id = i.live_revision + and r.mime_type = m.mime_type