Index: openacs-4/packages/contacts/www/search-action.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/search-action.xql,v diff -u -N -r1.2 -r1.3 --- openacs-4/packages/contacts/www/search-action.xql 14 Jun 2005 06:51:54 -0000 1.2 +++ openacs-4/packages/contacts/www/search-action.xql 26 Jun 2006 08:29:43 -0000 1.3 @@ -6,9 +6,11 @@ select title, owner_id as old_owner_id, all_or_any, - object_type - from contact_searches - where search_id = :search_id + contact_searches.object_type + from contact_searches, + acs_objects + where search_id = object_id + and search_id = :search_id @@ -23,8 +25,10 @@ select title - from contact_searches - where owner_id = :owner_id + from contact_searches, + acs_objects + where search_id = object_id + and owner_id = :owner_id and upper(title) like upper('${sql_title}%')