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.2 -r1.3 --- openacs-4/packages/attachments/www/go-to-attachment.xql 16 Jan 2003 13:43:15 -0000 1.2 +++ openacs-4/packages/attachments/www/go-to-attachment.xql 17 May 2003 10:13:02 -0000 1.3 @@ -2,25 +2,22 @@ - -select -object_type -from attachments, acs_objects -where -attachments.object_id = :object_id and -attachments.item_id = :attachment_id and -attachments.item_id = acs_objects.object_id - + + select object_type + from attachments, acs_objects + where + attachments.object_id = :object_id and + attachments.item_id = :attachment_id and + attachments.item_id = acs_objects.object_id + - -select -url -from fs_urls -where -url_id = :attachment_id - + + select url + from cr_extlinks + where extlink_id = :attachment_id +