Change contact search to use filter to filter by specific columns

This commit is contained in:
Nathan Gray 2010-04-21 19:09:11 +00:00
parent 6b7dee0c5b
commit d7c8f809bf

View File

@ -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 ) ) {