зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5d97edf128
Коммит
9ddcab0dc8
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче