Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 887564: Do not show phone # in name edit field #10673

Merged
merged 1 commit into from Jun 28, 2013

Conversation

wanderview
Copy link
Contributor

Previously the contacts_list code would overwrite the givenName field in
the contact object. This was done so that different values could be
shown in the list if a name was not present. This causes problems, though,
when the contact object is shared between multiple parts of the app. In
this case the contacts_form code was getting handed one of these modified
contact objects.

Modify the code to calculate the display name, but not modify the contact
object itself. Also refactor how contacts_list refresh() works when given
a contact object instead of an ID. The previous code was a bit confusing
and called remove() twice for objects.

Previously the contacts_list code would overwrite the givenName field in
the contact object.  This was done so that different values could be
shown in the list if a name was not present.  This causes problems, though,
when the contact object is shared between multiple parts of the app.  In
this case the contacts_form code was getting handed one of these modified
contact objects.

Modify the code to calculate the display name, but not modify the contact
object itself.  Also refactor how contacts_list refresh() works when given
a contact object instead of an ID.  The previous code was a bit confusing
and called remove() twice for objects.
arcturus added a commit that referenced this pull request Jun 28, 2013
Bug 887564: Do not show phone # in name edit field
@arcturus arcturus merged commit 088e2ad into mozilla-b2g:master Jun 28, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants