Index: openacs-4/packages/acs-kernel/sql/oracle/upgrade/upgrade-4.6-4.6.1.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/oracle/upgrade/Attic/upgrade-4.6-4.6.1.sql,v
diff -u -r1.1.2.6 -r1.1.2.7
--- openacs-4/packages/acs-kernel/sql/oracle/upgrade/upgrade-4.6-4.6.1.sql	15 Feb 2003 22:31:13 -0000	1.1.2.6
+++ openacs-4/packages/acs-kernel/sql/oracle/upgrade/upgrade-4.6-4.6.1.sql	16 Feb 2003 02:16:25 -0000	1.1.2.7
@@ -1187,7 +1187,7 @@
 
   for map in (select group_id, element_id, rel_type
               from group_element_index
-              where rel_id = :new.rel_id)
+              where rel_id = :old.rel_id)
   loop
     party_approved_member.remove(map.group_id, map.element_id, map.rel_type);
   end loop;
