Closed Bug 820843 Opened 12 years ago Closed 12 years ago

[Contacts] Cannot add a new contact if the phone number does not include international prefix

Categories

(Firefox OS Graveyard :: Gaia::Contacts, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 821101

People

(Reporter: armenzg, Unassigned)

Details

(Keywords: b2g-testdriver, unagi)

I can add a contact if I only add the first name.
If I try to add a phone number (first and last name as well) and then tap "done" it won't save it and it will stay on the editing contact page.

I'm on the beta channel and on 12-06.
Component: Gaia → Gaia::Contacts
it worked perfectly for me. Think this is false
Rather than calling it false it would be not reproducible for me.

Jose, que build estas usando? What is the date?
Gaia triage : +, usability issue.

It turns out if you type stuff fast, and then hit done quickly it will cause this to appear.  I believe it has something to do with the slowness of the keyboard/contacts app and submission of the contact.
(In reply to Armen Zambrano G. [:armenzg] from comment #2)
> Rather than calling it false it would be not reproducible for me.

Yes, sorry for using the wrong word 

> 
> Jose, que build estas usando? What is the date?

Estoy usando el ultimo master. Maybe Naoki is right with his analysis 

Saludos Armen y gracias!
Hi Naoki, how easily producible is this issue? thanks
Flags: needinfo?(nhirata.bugzilla)
I have found the trick.

I can only create a contact if I add +1 at the beginning of the number.
There was no error message anywhere to be found.

This should be blocking basecamp.
oh yeah. My colleague Cristian discovered the same issue this morning. It is a problem with the PhoneNumber and Contacts API. 

this was the trace found on logcat

E/GeckoConsole(  674): [JavaScript Error: "(intermediate value).internationalNumber is null" {file: "resource://gre/modules/ContactDB.jsm" line: 275}]
Summary: [Contacts] Cannot add a new contact → [Contacts] Cannot add a new contact if the phone number does not include international prefix
This should be fixed by 821101. Reopen if you still see it with the patch.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
The fix will come through bug 821101.
Dropping bb request.
Clearing flag info for nhirata.
blocking-basecamp: ? → ---
Flags: needinfo?(nhirata.bugzilla)
It's not just for +1, it's also occurs when you type fast.  I'm not sure if these two issues are the same.
(In reply to Armen Zambrano G. [:armenzg] from comment #6)
> I have found the trick.
> 
> I can only create a contact if I add +1 at the beginning of the number.
> There was no error message anywhere to be found.
> 
> This should be blocking basecamp.

Do you remember the number you wanted to add? This bug should only occur if you try to add a random number that doesn't match the format for local numbers of your current country. So if you tried to add a "real" number we should investigate more.
It was a real number.
This is the format I tried:
9998887777
adding +1 at the beginning works around it.
(In reply to Armen Zambrano G. [:armenzg] from comment #12)
> It was a real number.
> This is the format I tried:
> 9998887777
> adding +1 at the beginning works around it.

This was on a device?
What country are you in?
With a sim card in the phone?

I see from the phonebook that you are in canada. In your case it might be the Canada bug from 818507 that got fixed a few days ago.
(In reply to Gregor Wagner [:gwagner] from comment #13)
> (In reply to Armen Zambrano G. [:armenzg] from comment #12)
> > It was a real number.
> > This is the format I tried:
> > 9998887777
> > adding +1 at the beginning works around it.
> 
> This was on a device?
Unagi.

> What country are you in?
Canada

> With a sim card in the phone?
Rogers

> 
> I see from the phonebook that you are in canada. In your case it might be
> the Canada bug from 818507 that got fixed a few days ago.
>
hrmm. maybe I did have the spinner when I imported them. I nevertheless got the contacts in the phone. I don't recall if I rebooted the device or I hit the spinner issue at all.
You need to log in before you can comment on or make changes to this bug.