From 9ddcab0dc8e7d2cd92039bc6490615fac7b3dfc8 Mon Sep 17 00:00:00 2001 From: Alexandre Lissy Date: Mon, 1 Sep 2014 01:00:00 +0200 Subject: [PATCH] Bug 1060865 - Fix end date filling in SmsFilter. r=vicamo Copying the endDate value in the startDate field won't make the filter working properly ; in fact, it will even crash the Messages app sometimes because of the uninitialized value of the endDate which is invalid and triggers a DataError within the MobileMessageDB. --- dom/mobilemessage/ipc/SmsIPCService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/mobilemessage/ipc/SmsIPCService.cpp b/dom/mobilemessage/ipc/SmsIPCService.cpp index bc03cc14370a..57c3f8846ea2 100644 --- a/dom/mobilemessage/ipc/SmsIPCService.cpp +++ b/dom/mobilemessage/ipc/SmsIPCService.cpp @@ -238,7 +238,7 @@ SmsIPCService::CreateMessageCursor(bool aHasStartDate, data.hasStartDate() = aHasStartDate; data.startDate() = aStartDate; data.hasEndDate() = aHasEndDate; - data.startDate() = aEndDate; + data.endDate() = aEndDate; if (aNumbersCount && aNumbers) { nsTArray& numbers = data.numbers();