From cd900901a496c76cb2e0cf0d4efba43540b86002 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Thu, 31 Oct 2013 12:21:50 -0400 Subject: [PATCH] Fix setting name in add_contact(). 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. --- lib/contact.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/contact.php b/lib/contact.php index a2e9415..f376406 100644 --- a/lib/contact.php +++ b/lib/contact.php @@ -503,6 +503,7 @@ $contact = new Contact; if (! update_contact($contact, $area_id, true)) return false; + $name = $contact->getDisplayname(); return $contact->getId(); } -- 2.7.4