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 -r1.5 -r1.5.2.1 --- openacs-4/packages/attachments/www/go-to-attachment.xql 23 Aug 2006 12:46:57 -0000 1.5 +++ openacs-4/packages/attachments/www/go-to-attachment.xql 31 Mar 2007 07:10:12 -0000 1.5.2.1 @@ -12,11 +12,12 @@ - select r.title,i.name, o.package_id - from cr_revisions r, cr_items i, acs_objects o + select r.title,i.name, o.package_id, m.file_extension + from cr_revisions r, cr_items i, acs_objects o, cr_mime_types m where i.item_id = :attachment_id and r.revision_id = i.live_revision and i.item_id = o.object_id + and m.mime_type = r.mime_type