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

potential bug in crm_update_contact

    Details

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

      Description

      The problem is definitely with crm_update_contact. Just tested it
      with CiviCRM 1.3 rev 4495 under php 4. It's not saving the first or
      last name. This is the offending code snippet:

      $params = array('email' => $user->mail);
      if ($contact = crm_get_contact($params))

      { $info = array('first_name' => $edit->first ? $edit->first : NULL, 'last_name' => $edit->last ? $edit->last : NULL, 'street_address' => $edit->address ? $edit- >address : NULL, 'city' => $edit->city ? $edit->city : NULL, 'state_province' => $edit->state ? $edit- >state : NULL, 'postal_code' => $edit->zip ? $edit->zip : NULL, 'phone' => $edit->phone ? $edit->phone : NULL); $contact = crm_update_contact($contact, $info); }

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              lobo Donald A. Lobo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: