Closed
Bug 887564
Opened 11 years ago
Closed 11 years ago
[contacts] the number is shown in the edit page when there is no name
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(blocking-b2g:koi+)
RESOLVED
FIXED
blocking-b2g | koi+ |
People
(Reporter: julienw, Assigned: bkelly)
References
Details
(Whiteboard: c= , p=1 ,)
Attachments
(1 file)
STR: * edit a contact * remove the given name and the family name * save the contact * tap the edit button again Expected: * the given and family names are still empty Actual: * the given name input has the first phone number displayed Moreover, if, at the step 4, you first press the back button to go at the contact list, then load the contact again, and edit the contact, then the expected behavior happens ! I also checked (from the Sms app) that the given name is actually empty in the database. This is probably not a blocker, but if the fix is small it could still be a good idea to leo+ it after the fact.
Assignee | ||
Comment 1•11 years ago
|
||
This is likely the culprit: https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/contacts/js/contacts_list.js#L765 We should probably return the normalized string to use elsewhere instead of setting the givenName to it.
Assignee | ||
Comment 2•11 years ago
|
||
Taking this since I'm already neck deep in the code.
Assignee: nobody → bkelly
Status: NEW → ASSIGNED
Whiteboard: c= , p=1 ,
Assignee | ||
Comment 3•11 years ago
|
||
Pointer to Github pull-request
Assignee | ||
Updated•11 years ago
|
Attachment #768341 -
Flags: review?(francisco.jordano)
Comment 4•11 years ago
|
||
Comment on attachment 768341 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/10673 Nice refactor with a good documentation for the method, thanks a lot. Tried on the phone and working perfectly. r+++! F.
Attachment #768341 -
Flags: review?(francisco.jordano) → review+
Comment 5•11 years ago
|
||
Landed https://github.com/mozilla-b2g/gaia/commit/088e2ad5f35ac192ed3b2b623da7bfe48ad8ae94
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•11 years ago
|
blocking-b2g: --- → koi?
Updated•11 years ago
|
blocking-b2g: koi? → koi+
You need to log in
before you can comment on or make changes to this bug.
Description
•