Closed
Bug 924378
Opened 12 years ago
Closed 12 years ago
[Contacts API] Error in finding matching contacts for international number (00)
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: gtorodelvalle, Assigned: gwagner)
References
Details
Attachments
(1 file)
|
3.95 KB,
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
navigator.mozContacts.find({filterOp: 'match', filterBy: 'tel'} ) is not retrieving as matching contacts with '00'-type international phone numbers. It is working fine for numbers with no international prefix and numbers with '+'-type international prefix.
For example, in case of 3 contacts with phone numbers 666666666, +34666666666, 0034666666666. The 666666666 and +34666666666 ones are detected as matching contacts whereas the 0034666666666 is not.
Comment 1•12 years ago
|
||
Vicamo, is Gene handling phone number normalization now (I ask because I saw him assign himself on another bug)?
Flags: needinfo?(vyang)
| Assignee | ||
Comment 3•12 years ago
|
||
We need a 2nd request that deals with international prefix numbers :(
Assignee: nobody → anygregor
Attachment #816048 -
Flags: review?(bent.mozilla)
Updated•12 years ago
|
Target Milestone: --- → 1.2 C3(Oct25)
Comment on attachment 816048 [details] [diff] [review]
patch
Review of attachment 816048 [details] [diff] [review]:
-----------------------------------------------------------------
Ick. r=me with this addressed:
::: dom/contacts/fallback/ContactDB.jsm
@@ +1065,5 @@
> + } else if (normalized[0] !== "+") {
> + // We might have an international prefix like '00'
> + let parsed = PhoneNumberUtils.parse(normalized);
> + if (parsed && parsed.internationalNumber &&
> + parsed.nationalNumber !== normalized &&
Shouldn't you check that parsed.nationalNumber exists before moving on here?
Attachment #816048 -
Flags: review?(bent.mozilla) → review+
| Assignee | ||
Comment 5•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Flags: needinfo?(vyang)
Comment 6•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
| Reporter | ||
Comment 8•12 years ago
|
||
Bug 904515 which depended on this one works fine now :-) Thank you very much!
Flags: needinfo?(gtorodelvalle)
Comment 9•12 years ago
|
||
status-b2g-v1.2:
--- → fixed
status-firefox25:
--- → wontfix
status-firefox26:
--- → fixed
status-firefox27:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•