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

Display Name not updating properly through civicrm_contact_add

    Details

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

      Description

      If I have a contact called John X Smith then REMOVE the middle name by setting it blank and update it through the API, the display name does get updated and retains the existing full name.

      $params = array(
      'contact_id' => 123,
      'contact_type' => 'Individual',
      'first_name' => 'John',
      'middle_name' => '',
      'last_name' => 'Smith');

      civicrm_contact_add($params);

        Attachments

          Activity

            People

            • Assignee:
              neha.saraph Neha Kulkarni
              Reporter:
              barrylb Barry
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: