The add_contact() function was supposed to set the name parameter to the
display name of the newly-created contact. We now ensure that that happens.
A side-effect of the bug was that we weren't showing the details of new
contacts, as was intended.
$contact = new Contact;
if (! update_contact($contact, $area_id, true)) return false;
$contact = new Contact;
if (! update_contact($contact, $area_id, true)) return false;
+ $name = $contact->getDisplayname();
return $contact->getId();
}
return $contact->getId();
}