Index: openacs-4/packages/acs-content-repository/sql/postgresql/content-keyword.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/content-keyword.sql,v diff -u -r1.10 -r1.10.2.1 --- openacs-4/packages/acs-content-repository/sql/postgresql/content-keyword.sql 9 Dec 2001 04:21:58 -0000 1.10 +++ openacs-4/packages/acs-content-repository/sql/postgresql/content-keyword.sql 12 May 2002 21:22:49 -0000 1.10.2.1 @@ -128,13 +128,12 @@ returns integer as ' declare delete__keyword_id alias for $1; - v_item_id integer; v_rec record; begin for v_rec in select item_id from cr_item_keyword_map where keyword_id = delete__keyword_id LOOP - PERFORM content_keyword__item_unassign(v_item_id, delete__keyword_id); + PERFORM content_keyword__item_unassign(v_rec.item_id, delete__keyword_id); end LOOP; PERFORM acs_object__delete(delete__keyword_id);