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

creation of an Individual where both employer_id & current_employer set takes the name instead of the id

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.2.3
    • Fix Version/s: 3.2.4
    • Component/s: None
    • Labels:
      None

      Description

      instead of creating the employer/employee relationship using the id, it uses the organization name (even if the id is set.

      If you have several organizations with the same names, it will pick one up, that might be different than the one selected by employer id.

      Step to reproduce:
      Create an organization id 1 name "test"
      Create an organization id 42 name "test"

      use the api to create a new individual with both current_employer="test" and employer_id = "42", it will set the employer as 1 instead of 42.

      /

        Attachments

          Activity

            People

            • Assignee:
              rahulbile Rahul Bile
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: