Index: openacs-4/packages/edit-this-page/www/etp-symlink-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/edit-this-page/www/etp-symlink-postgresql.xql,v diff -u -r1.2 -r1.2.2.1 --- openacs-4/packages/edit-this-page/www/etp-symlink-postgresql.xql 4 Sep 2002 12:53:06 -0000 1.2 +++ openacs-4/packages/edit-this-page/www/etp-symlink-postgresql.xql 10 Oct 2002 02:01:09 -0000 1.2.2.1 @@ -17,7 +17,8 @@ and o.object_type in ('content_item', 'content_folder') and i.name != 'index' and i2.item_id = -400 - and i.tree_sortkey not between i2.tree_sortkey and tree_right(i2.tree_sortkey) + and tree_root_key(i.tree_sortkey) <> + (select tree_sortkey from cr_items where item_id=-400) order by i.tree_sortkey