git://git.iain.cx/iain
/
readifood.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bacdf10
)
Fix setting name in add_contact().
2013-10-31
author
Iain Patterson
<me@iain.cx>
Thu, 31 Oct 2013 16:21:50 +0000
(12:21 -0400)
committer
Iain Patterson
<me@iain.cx>
Thu, 31 Oct 2013 16:31:52 +0000
(12:31 -0400)
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
patch
|
blob
|
history
diff --git
a/lib/contact.php
b/lib/contact.php
index
a2e9415
..
f376406
100644
(file)
--- 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();
}