Bug 901887 - [RIL][Contacts] Saving to SIM doesn't work. r=allstars.chh

This commit is contained in:
Gene Lian 2013-08-08 16:16:50 +08:00
parent 955967b5ff
commit ba96f2e263

View File

@ -12591,10 +12591,11 @@ let ICCContactHelper = {
return;
}
// Check if contact has additional properties (email, anr, ...etc) need
// to be updated as well.
// Check if contact has additional properties (email, anr, ...etc) that
// need to be updated as well.
if ((field === USIM_PBR_EMAIL && !contact.email) ||
(field === USIM_PBR_ANR0 && !contact.anr[0])) {
(field === USIM_PBR_ANR0 && (!Array.isArray(contact.anr) ||
!contact.anr[0]))) {
updateField();
return;
}