summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-10-04 21:16:48 +0200
committerBart Visscher <bartv@thisnet.nl>2011-10-04 21:16:57 +0200
commit2c95c799e6b4b433dccb6efe04fe2c6dc9e5d9f9 (patch)
treea4579db8eb4782088629a45e232bd4b773d1cddd /apps/contacts/ajax
parentfada3517b0e461e2e6a112d6e4f6eb71d856816b (diff)
downloadnextcloud-server-2c95c799e6b4b433dccb6efe04fe2c6dc9e5d9f9.tar.gz
nextcloud-server-2c95c799e6b4b433dccb6efe04fe2c6dc9e5d9f9.zip
Add new contact name to end of cantact list
Diffstat (limited to 'apps/contacts/ajax')
-rw-r--r--apps/contacts/ajax/addcard.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/contacts/ajax/addcard.php b/apps/contacts/ajax/addcard.php
index 70e0f0a89d0..ee95513732d 100644
--- a/apps/contacts/ajax/addcard.php
+++ b/apps/contacts/ajax/addcard.php
@@ -44,10 +44,9 @@ $vcard->add(new Sabre_VObject_Property('UID',OC_Contacts_VCard::createUID()));
$id = OC_Contacts_VCard::add($aid,$vcard->serialize());
$details = OC_Contacts_VCard::structureContact($vcard);
-$name = $details['FN'][0]['value'];
$tmpl = new OC_Template('contacts','part.details');
$tmpl->assign('details',$details);
$tmpl->assign('id',$id);
$page = $tmpl->fetchPage();
-OC_JSON::success(array('data' => array( 'id' => $id, 'name' => $name, 'page' => $page )));
+OC_JSON::success(array('data' => array( 'id' => $id, 'page' => $page )));