Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
FN field behaviour: first and last name #270
When you try to add a new contact and you want to edit the name field there it's written by default "New contact" and you need to delete it in order to write the name of your contact.
Name field should be empty, in order to write the name of your contact.
At the field by default it is written "new contact" and to fill it you need to delete what is previously written there.
Contacts version: 1.5.4
Hi! @skjnldsv @jancborchardt I tried to look up the file in the contacts repo where "New Contact" is put as the default value for the FN field. But, a grep search didn't return any file. The fn field has been defined in the dav.js and contact.js file. Could you hint as to which file we could look up for finding this default behaviour so that we can convert this string to NULL to fix this issue?
You can't really set the FN field to null by default since a FN property is required by the vcard rfc :)
Nonetheless, everything happens here: https://github.com/nextcloud/contacts/blob/master/js/services/contact_service.js#L226