Index: openacs-4/packages/contacts/tcl/contact-search-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/tcl/contact-search-procs.xql,v diff -u -r1.11 -r1.12 --- openacs-4/packages/contacts/tcl/contact-search-procs.xql 12 Mar 2006 17:54:18 -0000 1.11 +++ openacs-4/packages/contacts/tcl/contact-search-procs.xql 13 Mar 2006 07:22:00 -0000 1.12 @@ -52,7 +52,7 @@ and group_distinct_member_map.group_id in ('[join [contacts::default_groups] "','"]') and persons.person_id = cr_items.item_id and cr_items.latest_revision = cr_revisions.revision_id - [contact::search_clause -and -search_id $search_id -query $query -party_id "parties.party_id" -revision_id "revision_id"] + [contact::search_clause -and -search_id $search_id -query $query -party_id "persons.person_id" -revision_id "revision_id"] @@ -64,7 +64,7 @@ and group_distinct_member_map.group_id in ('[join [contacts::default_groups] "','"]') and organizations.organization_id = cr_items.item_id and cr_items.latest_revision = cr_revisions.revision_id - [contact::search_clause -and -search_id $search_id -query $query -party_id "parties.party_id" -revision_id "revision_id"] + [contact::search_clause -and -search_id $search_id -query $query -party_id "organizations.organization_id" -revision_id "revision_id"]