From 263220df7efb0258db93ea78693a3474500fe393 Mon Sep 17 00:00:00 2001 From: Gregor Wagner Date: Tue, 2 Jul 2013 11:24:16 +0800 Subject: [PATCH] Bug 883770 - [Dialer][SMS][Contacts] Call log does no longer show contact names after version upgrade. Followup. r=reuben. --- dom/contacts/fallback/ContactDB.jsm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dom/contacts/fallback/ContactDB.jsm b/dom/contacts/fallback/ContactDB.jsm index 8904ba1effc..078a48b479a 100644 --- a/dom/contacts/fallback/ContactDB.jsm +++ b/dom/contacts/fallback/ContactDB.jsm @@ -336,7 +336,9 @@ ContactDB.prototype = { if (!objectStore) { objectStore = aTransaction.objectStore(STORE_NAME); } - objectStore.createIndex("telMatch", "search.parsedTel", {multiEntry: true}); + if (!objectStore.indexNames.contains("telMatch")) { + objectStore.createIndex("telMatch", "search.parsedTel", {multiEntry: true}); + } objectStore.openCursor().onsuccess = function(event) { let cursor = event.target.result; if (cursor) {