Index: openacs-4/packages/acs-content-repository/sql/oracle/content-item.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/oracle/content-item.sql,v
diff -u -r1.20.2.1 -r1.20.2.2
--- openacs-4/packages/acs-content-repository/sql/oracle/content-item.sql	16 Mar 2004 18:33:27 -0000	1.20.2.1
+++ openacs-4/packages/acs-content-repository/sql/oracle/content-item.sql	23 Apr 2004 16:16:26 -0000	1.20.2.2
@@ -614,14 +614,14 @@
     from 
       cr_items
     where
-      cr_items.name = name
+      cr_items.name = content_item.rename.name
     and 
       parent_id = (select 
 		     parent_id
 		   from
 		     cr_items
 		   where
-		     cr_items.item_id = item_id);
+		     cr_items.item_id = content_item.rename.item_id);
 
   exists_id integer;
 begin
@@ -632,8 +632,8 @@
   if exists_cur%NOTFOUND then
     close exists_cur;
     update cr_items
-	set cr_items.name = name
-       	where cr_items.item_id = item_id;
+	set cr_items.name = content_item.rename.name
+       	where cr_items.item_id = content_item.rename.item_id;
   else
     close exists_cur;
     if exists_id <> item_id then
