Index: openacs-4/packages/glossar/www/glossar-move.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/glossar/www/glossar-move.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/glossar/www/glossar-move.xql 13 Nov 2005 13:39:56 -0000 1.1 +++ openacs-4/packages/glossar/www/glossar-move.xql 4 Jan 2006 08:09:39 -0000 1.2 @@ -5,9 +5,10 @@ SELECT o.name , o.organization_id - FROM organizations o, parties p + FROM organizations o, parties p, group_member_map m WHERE o.organization_id = p.party_id - AND o.organization_id in ([template::util::tcl_to_sql_list [group::get_members -group_id [group::get_id -group_name "Customers"]]]) + AND o.organization_id = m.member_id + AND m.group_id = :customer_group_id [contact::search_clause -and -search_id $search_id -query $query -party_id "o.party_id" -revision_id "revision_id"]