Index: openacs-4/packages/ams/tcl/ams-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ams/tcl/ams-procs-postgresql.xql,v diff -u -r1.18 -r1.19 --- openacs-4/packages/ams/tcl/ams-procs-postgresql.xql 1 Dec 2005 11:01:07 -0000 1.18 +++ openacs-4/packages/ams/tcl/ams-procs-postgresql.xql 31 Jan 2006 00:54:50 -0000 1.19 @@ -62,7 +62,8 @@ attribute_id, value_id from ams_attribute_values - where object_id = :from ) + where object_id = :from + and attribute_id not in ( select attribute_id from ams_attribute_values where object_id = :to ))