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

Relationship_type_id does not use pseudoconstants

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.4.4
    • Fix Version/s: Unscheduled
    • Component/s: CiviCRM API
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)

      Description

      An API call "relationship, create" with the $params array containing a relationship_type_id parameter of type string throws an error saying it must be of type Integer.

      As far as I understand, behavior should be that a relationship_type_id of type String should be converted to an Integer using the pseudoconstants, so for example relationship_type_id = 'Employee of' should be automatically converted to relationship_type_id=5 by the API before processing the call.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nganivet Nicolas Ganivet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: