Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-9370

No custom type checking in contact creation API

    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.

        Attachments

          Activity

            People

            • Assignee:
              xavier xavier dutoit
              Reporter:
              tgr Tisza Gergő
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: