Index: openacs-4/packages/bookmarks/www/index-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bookmarks/www/index-postgresql.xql,v diff -u -r1.3 -r1.4 --- openacs-4/packages/bookmarks/www/index-postgresql.xql 7 Jun 2001 20:26:06 -0000 1.3 +++ openacs-4/packages/bookmarks/www/index-postgresql.xql 26 Jun 2001 00:15:29 -0000 1.4 @@ -77,14 +77,14 @@ where object_id = bookmark_id and party_id in (:browsing_user_id, -1) and privilege = 'read' - and tree_sortkey like - ( - select tree_sortkey || '%' - from bm_bookmarks - where bookmark_id = '2249' - ) - order by tree_sortkey - ) + ) + and tree_sortkey like + ( + select tree_sortkey || '%' + from bm_bookmarks + where bookmark_id = b.bookmark_id + ) + order by tree_sortkey ) and b.bookmark_id <> :root_folder_id order by ord_num