diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-12-02 21:24:48 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-12-02 21:24:48 +0100 |
commit | 31846141b0269bb24b9925a1bbbbc5d815719bec (patch) | |
tree | 07f4bc28ccf60b0338fbae3702dd724fd657e5df /apps/contacts/ajax | |
parent | 0bbeb13e260caf97cb1029c66482101e839e6f32 (diff) | |
download | nextcloud-server-31846141b0269bb24b9925a1bbbbc5d815719bec.tar.gz nextcloud-server-31846141b0269bb24b9925a1bbbbc5d815719bec.zip |
Contacts: make name editable again
Diffstat (limited to 'apps/contacts/ajax')
-rw-r--r-- | apps/contacts/ajax/setproperty.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/contacts/ajax/setproperty.php b/apps/contacts/ajax/setproperty.php index c9102c4a2ee..22f228cbf43 100644 --- a/apps/contacts/ajax/setproperty.php +++ b/apps/contacts/ajax/setproperty.php @@ -107,7 +107,12 @@ OC_Contacts_VCard::edit($id,$vcard->serialize()); $adr_types = OC_Contacts_VCard::getTypesOfProperty($l10n, 'ADR'); $phone_types = OC_Contacts_VCard::getTypesOfProperty($l10n, 'TEL'); -$tmpl = new OC_Template('contacts','part.property'); +if ($vcard->children[$line]->name == 'FN'){ + $tmpl = new OC_Template('contacts','part.property.FN'); +} +else{ + $tmpl = new OC_Template('contacts','part.property'); +} $tmpl->assign('adr_types',$adr_types); $tmpl->assign('phone_types',$phone_types); $tmpl->assign('property',OC_Contacts_VCard::structureProperty($vcard->children[$line],$line)); |