Fix events search when targeting recurrent events

This commit is contained in:
Francis Lachapelle
2019-08-19 16:47:37 -04:00
parent 676d2e6790
commit d8d3c88e98
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@@ -14,6 +14,7 @@ Enhancements
Bug fixes
- [web] properly handle Windows-1256 charaset (#4781)
- [web] fixed saving value of receipt action for main IMAP account
- [web] fixed search results in Calendar module when targeting all events
4.0.8 (2019-07-19)
------------------

View File

@@ -1626,7 +1626,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
// replace the date range
if (r)
{
if ([baseWhere count] > 1)
if (dateSqlString)
[baseWhere removeLastObject];
dateSqlString = [self _sqlStringRangeFrom: _startDate
to: endDate