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

organization display_name set to empty string by civicrm_contact_add()

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      If civicrm_contact_add() is used to update an organization contact, the organization's display_name will be set to empty string unless the organization_name or display_name is explicitly set in the $params. I do not, however, want to have to specify all org fields in the civicrm_contact_add() $params.

      Passing a full $organization array into civicrm_contact_add() will cause other problems, such as an extra row appearing in the civicrm_email table (duplicate location is created).

        Attachments

          Activity

            People

            • Assignee:
              kiran.jagtap Kiran Jagtap
              Reporter:
              mfb Mark Burdett
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: