Closed
Bug 915573
Opened 11 years ago
Closed 11 years ago
[Dialer] Mobile type is not shown in the dialer screen for contacts with custom tags for phone number
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect)
Tracking
(blocking-b2g:koi+, b2g-v1.2 fixed)
People
(Reporter: isabelrios, Assigned: etienne)
References
Details
(Keywords: regression, Whiteboard: [u=commsapps-user c=contacts p=0])
Attachments
(3 files)
Master 09/12 build.
Gecko-729cc01
Gaia-70800e3
STR
From another device send a contact with Name and Phone Number via Bluetooth to DuT.
1. Tap on the File review request
2. Accept the transfer
3. Once the contact is shown correctly in the contact list, tap on it.
4. On the contact's details screen tap on the phone number to start the call
EXPECTED
When tapping on the phone number, the dialer is open with the contact's name, mobile type and number.
ACTUAL
Mobile type info is missing, so the info presented in the dialer is not correct.
Instead of Mobile, 123456789, it appears: , 123456789.
Please see screenshot attached
Comment 1•11 years ago
|
||
I've tested this, and is reproducible when the imported phone comes with a custom type -that is, one type that is not part of the basic ones we support ['mobile','home', 'work', 'personal', 'faxHome', 'faxOffice', 'faxOther', 'another']
Android phones, for example, use the phone type CELL.
This can be also reproducible if we create a contact on the FFOS device and apply a custom tag to the phone type. When we try to call that phone, we'll see the same " , 123456789".
I'm afraid that this has nothing to do with bluetooth or exporting/importing, but with the way we handle custom tags on Dialer, or the way that Contacts provide the information (but as SMS deals properly with custom tags, I think it has more to do with Dialer). Pinging German for more info
Flags: needinfo?(gtorodelvalle)
Comment 2•11 years ago
|
||
Fernando is completely right ;-) In fact, the problem is the inclusion of a custom tag which is not expected :p by the code as you can see here: https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/js/utils.js#L83 When using custom tags that code asks the localization service to translate something which should not be translated. Obviously, the simplest solution is to just show the type when is it a custom one (do not translate), which means it has not any of the following values: mobile, home, work, personal, faxHome, faxOffice, faxOther, another.
I'll take it as soon as I have some time ;-) Anyhow, feel free to take it since the solution is straight-forward :-P
Flags: needinfo?(gtorodelvalle)
Comment 3•11 years ago
|
||
triage: not block a release but please ask for approval for landing into v1.2 when you have a fix.
blocking-b2g: koi? → ---
Comment 4•11 years ago
|
||
Custom tags are properly working in v1.0.1, notice that the issue also appears when creating a contact manually and adding a custom field. Since it is a regression, asking for koi? again.
Updated•11 years ago
|
blocking-b2g: --- → koi?
Comment 6•11 years ago
|
||
Component: Gaia::Contacts → Gaia::Dialer
Summary: [Contacts] Mobile type is not shown in the dialer screen for contacts received via bluetooth → [Dialer] Mobile type is not shown in the dialer screen for contacts with custom tags for phone number
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → etienne
Assignee | ||
Comment 7•11 years ago
|
||
Showing the custom type string untranslated when we don't have a translation.
Attachment #812697 -
Flags: review?(anthony)
Comment 8•11 years ago
|
||
Comment on attachment 812697 [details]
Pointer to gaia PR
Patch looks ok. In the tests, I think using a stub that returns an empty string would be more expressive.
Attachment #812697 -
Flags: review?(anthony) → review-
Assignee | ||
Comment 9•11 years ago
|
||
Comment on attachment 812697 [details]
Pointer to gaia PR
Updated!
Attachment #812697 -
Flags: review- → review?(anthony)
Comment 10•11 years ago
|
||
Comment on attachment 812697 [details]
Pointer to gaia PR
Glop! Glop!
Attachment #812697 -
Flags: review?(anthony) → review+
Assignee | ||
Comment 11•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 12•11 years ago
|
||
Uplifted b6177f2ffd949c5b71b141d911cf572b10848493 to:
v1.2: b9c5604342e024c42fb9cee97cab3953a9377f22
status-b2g-v1.2:
--- → fixed
Reporter | ||
Comment 13•11 years ago
|
||
Hi,
Tried to verify this bug, but adding a custom tag as mobile type does not work.
When tapping on Mobile, the label list is shown, it is possible to tap on Custom field and type anything but when tapping on Done, the custom label written is discarded. Only changing to a default labels defined works.
This is a regression, could this be related to the patch or a new bug should be open?
Thanks
Reporter | ||
Comment 14•11 years ago
|
||
Checked with 10/09 v1.2 build:
Gecko-bd1bd24
Gaia-1499c58
Assignee | ||
Comment 15•11 years ago
|
||
> This is a regression, could this be related to the patch or a new bug should
> be open?
I had the issue before writing the patch in order to reproduce the bug I had to "hard code" a custom type in one of my contact.
A new bug should be open. Sorry I didn't do it myself.
Reporter | ||
Comment 16•11 years ago
|
||
(In reply to Etienne Segonzac (:etienne) from comment #15)
> > This is a regression, could this be related to the patch or a new bug should
> > be open?
>
> I had the issue before writing the patch in order to reproduce the bug I had
> to "hard code" a custom type in one of my contact.
>
> A new bug should be open. Sorry I didn't do it myself.
Thanks Etienne, I will open it then.
Reporter | ||
Comment 17•11 years ago
|
||
>
> A new bug should be open. Sorry I didn't do it myself.
Fyi, bug already filed, Bug 924903
Reporter | ||
Comment 18•11 years ago
|
||
Verified on 11/18 v1.2 build:
Gecko-1443247
Gaia-7a23f8c
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•