Index: openacs-4/packages/attachments/www/download/index.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attachments/www/download/index.xql,v diff -u -N -r1.2 -r1.2.26.1 --- openacs-4/packages/attachments/www/download/index.xql 5 Aug 2002 21:11:55 -0000 1.2 +++ openacs-4/packages/attachments/www/download/index.xql 11 Jul 2019 16:38:54 -0000 1.2.26.1 @@ -10,5 +10,16 @@ and attachments.item_id = :attachment_id - + + + + select live_revision + from cr_items ci, + attachments at + where ci.live_revision = at.item_id + and at.item_id = :attachment_id + and at.object_id = :object_id; + + +