See ChangeLog

Monotone-Parent: 3becdd5041a3336d6435f00058f362363842bf2a
Monotone-Revision: 44f11e17b6ccb6efa08fd613a7d939a22240c5ec

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-06-09T19:30:02
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2009-06-09 19:30:02 +00:00
parent 0a8a256eed
commit a400f8b957
2 changed files with 15 additions and 4 deletions

View File

@@ -4,6 +4,11 @@
([SOGoAppointmentFolder -_sqlStringRangeFromto:]): dates are not
necessarily defined in case of vTODOs; don't apply the range
constraint when dates are null so the SQL query return tasks.
([SOGoAppointmentFolder
-fetchFields:from:to:title:component:additionalFilters:includeProtectedInformation:]):
recurrent tasks are now returned as normal components and are
shown in the web interface. They are not flatten as recurrent
events are.
2009-06-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>

View File

@@ -972,10 +972,16 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
if (logger)
[self debugWithFormat:@"should fetch (%@=>%@) ...", _startDate, endDate];
sql = [NSString stringWithFormat: @"(c_iscycle = 0) %@ %@ %@ %@ %@",
dateSqlString, titleSqlString, componentSqlString,
privacySqlString, filterSqlString];
// We treat recurrent tasks as normal components
if ([_component caseInsensitiveCompare: @"vtodo"] == NSOrderedSame)
sql = @"";
else
sql = @"(c_iscycle = 0) ";
sql = [sql stringByAppendingFormat: @"%@ %@ %@ %@ %@",
dateSqlString, titleSqlString, componentSqlString,
privacySqlString, filterSqlString];
/* fetch non-recurrent apts first */
qualifier = [EOQualifier qualifierWithQualifierFormat: sql];