Bug 785147 - Contacts API: fix import contacts from SIM card. r=fabrice

This commit is contained in:
Gregor Wagner 2012-08-23 11:48:33 -07:00
parent c3b9f1b805
commit 0f68b8d609

View File

@ -548,7 +548,7 @@ ContactManager.prototype = {
if (DEBUG) debug("got SIM contacts: " + aType + " " + JSON.stringify(aContacts)); if (DEBUG) debug("got SIM contacts: " + aType + " " + JSON.stringify(aContacts));
let result = aContacts.map(function(c) { let result = aContacts.map(function(c) {
var contact = new Contact(); var contact = new Contact();
contact.init( { name: [c.alphaId], tel: [ { number: c.number } ] } ); contact.init( { name: [c.alphaId], tel: [ { value: c.number } ] } );
return contact; return contact;
}); });
if (DEBUG) debug("result: " + JSON.stringify(result)); if (DEBUG) debug("result: " + JSON.stringify(result));