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
Родитель 7ca1f19b01
Коммит e24465fc4b
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -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;
}