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

Cannot modify the primary location using civicrm_contact_add()

    Details

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

      Description

      For example all values (other than contact_id and contact_type) are different from what currently exists in CiviCRM:
      $contact = array (
      'contact_id' => '310764',
      'first_name' => 'DAVE',
      'last_name' => 'HANSEN-LANGE',
      'street_address' => '42 2/F',
      'city' => 'SHA',
      'postal_code' => '12345',
      'state_province_id' => NULL,
      'country_id' => '1098',
      'contact_type' => 'Individual',
      );
      civicrm_contact_add($contact);

      No errors are returned. The name fields are updated as expected, but the other fields aren't.

      I'm looking more into where things go wrong and why.

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              dalin dave hansen-lange
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: