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.
This commit is contained in:
Alexandre Lissy 2014-09-01 01:00:00 +02:00
Родитель 5d97edf128
Коммит 9ddcab0dc8
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -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<nsString>& numbers = data.numbers();