Don't remove the "c_component" condition in search

This will fix a bug when we'll support recurrent tasks!
pull/222/merge
Francis Lachapelle 2016-10-07 12:19:19 -04:00
parent c3d349e3c6
commit 292432df12
1 changed files with 2 additions and 1 deletions

View File

@ -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];