From d7c8f809bfe162b5e0c643e2e92f8fd48ba5c0d2 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 21 Apr 2010 19:09:11 +0000 Subject: [PATCH] Change contact search to use filter to filter by specific columns --- .../inc/class.addressbook_import_contacts_csv.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.addressbook_import_contacts_csv.inc.php b/addressbook/inc/class.addressbook_import_contacts_csv.inc.php index ace7c24289..9efa5632b0 100644 --- a/addressbook/inc/class.addressbook_import_contacts_csv.inc.php +++ b/addressbook/inc/class.addressbook_import_contacts_csv.inc.php @@ -158,8 +158,11 @@ class addressbook_import_contacts_csv implements importexport_iface_import_plugi // exists case 'exists' : $contacts = $this->bocontacts->search( - array( $condition['string'] => $record[$condition['string']],), - $_definition->plugin_options['update_cats'] == 'add' ? false : true + //array( $condition['string'] => $record[$condition['string']],), + '', + $_definition->plugin_options['update_cats'] == 'add' ? false : true, + '', '', '', false, 'AND', false, + array( $condition['string'] => $record[$condition['string']],) ); if ( is_array( $contacts ) && count( array_keys( $contacts ) >= 1 ) ) {