Don't remove the "c_component" condition in search

This will fix a bug when we'll support recurrent tasks!
This commit is contained in:
Francis Lachapelle
2016-10-07 12:19:19 -04:00
parent c3d349e3c6
commit 292432df12
@@ -1491,7 +1491,8 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
// replace the date range
if (r)
{
[baseWhere removeLastObject];
if ([baseWhere count] > 1)
[baseWhere removeLastObject];
dateSqlString = [self _sqlStringRangeFrom: _startDate
to: endDate
cycle: YES];