X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FContact.php;h=438544a5aeb9fd7999ec8de0c38ab234040d8e2f;hb=e33df30ac5111d147f811b4c1d4330457048159b;hp=1f7c0ba260b334ac3782ea10a96648cb98a6f1b0;hpb=021da9cd67825c3a2ad1356fa08c4daa716f976a;p=civicrm-core.git diff --git a/api/v3/Contact.php b/api/v3/Contact.php index 1f7c0ba260..438544a5ae 100644 --- a/api/v3/Contact.php +++ b/api/v3/Contact.php @@ -1,9 +1,9 @@ 'birth_date_low', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Birthdate is equal to or greater than')); + $params['birth_date_high'] = array('name' => 'birth_date_high', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Birthdate is equal to or less than')); + $params['deceased_date_low'] = array('name' => 'deceased_date_low','type' => CRM_Utils_Type::T_DATE, 'title' => ts('Deceased Date is equal to or greater than')); + $params['deceased_date_high'] = array('name' => 'deceased_date_high', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Deceased Date is equal to or less than')); } /** @@ -325,7 +330,7 @@ function _civicrm_api3_contact_check_params( &$params, $dupeCheck = true, $dupeE $dedupeParams['check_permission'] = $params['check_permission']; } - $ids = CRM_Dedupe_Finder::dupesByParams($dedupeParams, $params['contact_type'], 'Strict', array()); + $ids = CRM_Dedupe_Finder::dupesByParams($dedupeParams, $params['contact_type'], 'Unsupervised', array()); if (count($ids) >0) { throw new API_Exception("Found matching contacts: ". implode(',',$ids),"duplicate",array("ids"=>$ids)); @@ -394,6 +399,7 @@ function _civicrm_api3_contact_update($params, $contactID = NULL) { * @param $params Associative array of property name/value * pairs to insert in new contact. * + * @throws API_Exception * @return array (reference ) null on success, error message otherwise * * @access public