CRM-7857 Phone API accepts invalid phone_type_id or location_type_id with create function

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.3.6
    • Fix Version/s: 3.4.0
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      The new Phone API accepts an invalid phone_type_id or location_type_id. Assumption was that the BAO would not accept it and return an error, but it does not.

        Attachments

          Activity

          [CRM-7857] Phone API accepts invalid phone_type_id or location_type_id with create function
          Erik Hommel added a comment -

          Will fix in the Phone API for now, using the OptionGroup and OptionValue API

          Erik Hommel added a comment -

          Added LocationType API to v3 as part of the fix

            People

            • Assignee:
              Erik Hommel
              Reporter:
              Erik Hommel

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified