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

API (relationship, create) of type "Employee of" does not set the employer_id

    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)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      An API call to create an employment relationship between an Individual and an Organization does not set the 'employer_id' and 'organization_name' columns in the contact table for the employee record.

      Reproduced on the demo site using the API explorer. Create an employment relationship, then go on the contact summary for the Individual, the 'Employer' field is empty, but the relationship tab shows that the employment relationship does exist. Tested with start_date and end_date for the relationship not set in the API call.

      This seems to be a regression from the 4.2 LTS.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: