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 -r1.44 -r1.45
--- openacs-4/packages/acs-content-repository/sql/postgresql/content-create.sql	29 Apr 2004 15:41:17 -0000	1.44
+++ openacs-4/packages/acs-content-repository/sql/postgresql/content-create.sql	17 May 2004 15:14:44 -0000	1.45
@@ -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 
 
