Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.1.0
-
Fix Version/s: 4.2.0
-
Component/s: CiviCRM API
-
Labels:None
Description
Four test cases in the suite api_v3_CustomValueContactTypeTest fail when they attempt to add a contact with a custom field which is not valid for that type of contact. The tests expect an "Invalid Custom Field Contact" error, but the API call adds the contact successfully. I could fix this by adding a call to _civicrm_api3_deprecated_contact_check_custom_params in civicrm_api3_contact_create, but did not find a non-deprecated function which would be suitable.