Index: openacs-4/packages/acs-content-repository/sql/postgresql/content-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/content-create.sql,v
diff -u -N -r1.43 -r1.43.2.1
--- openacs-4/packages/acs-content-repository/sql/postgresql/content-create.sql	18 Feb 2004 17:02:58 -0000	1.43
+++ openacs-4/packages/acs-content-repository/sql/postgresql/content-create.sql	6 May 2004 00:12:43 -0000	1.43.2.1
@@ -341,7 +341,7 @@
               from cr_items parent, 
                    cr_items child
              where child.item_id = v_rec.item_id
-             and   parent.item_id = chid.parent_id;
+             and   parent.item_id = child.parent_id;
 
             if p_id is null then 
 
