Index: openacs-4/packages/bookmarks/sql/postgresql/bookmarks-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/bookmarks/sql/postgresql/bookmarks-create.sql,v
diff -u -r1.22 -r1.23
--- openacs-4/packages/bookmarks/sql/postgresql/bookmarks-create.sql	17 May 2003 10:18:52 -0000	1.22
+++ openacs-4/packages/bookmarks/sql/postgresql/bookmarks-create.sql	30 Sep 2003 05:04:47 -0000	1.23
@@ -544,6 +544,7 @@
                           and bm.tree_sortkey between bm2.tree_sortkey and tree_right(bm2.tree_sortkey)
 		)
 		AND in_closed_p_id = p_browsing_user_id
+	        AND bookmark_id <> v_parent_ids.bookmark_id
 		AND bookmark_id <> p_bookmark_id;
 	END LOOP;
 	RETURN 0;
