mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-25 21:35:23 +00:00
Fixed incoherence
Monotone-Parent: e88954c069bb059beab0f156e13851671bd1054a Monotone-Revision: 2e82af935f99a50853aa4b3dfee4ab97d8f9fc66 Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-06-02T14:39:21 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -901,8 +901,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
||||
title: (NSString *) title
|
||||
component: (id) _component
|
||||
additionalFilters: (NSString *) filters
|
||||
includeProtectedInformation: (BOOL) _includeProtectedInformation;
|
||||
|
||||
includeProtectedInformation: (BOOL) _includeProtectedInformation
|
||||
{
|
||||
EOQualifier *qualifier;
|
||||
GCSFolder *folder;
|
||||
@@ -1306,6 +1305,20 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
||||
[self _enforceTimeLimitOnFilter: filter];
|
||||
}
|
||||
|
||||
- (void) _addDateRangeLimitToFilter: (NSMutableDictionary *) filter
|
||||
{
|
||||
NSCalendarDate *now;
|
||||
int limit;
|
||||
|
||||
now = [NSCalendarDate date];
|
||||
limit = [self _getStartTimeLimit];
|
||||
|
||||
[filter setObject: [now addTimeInterval: (limit / 2) * -86400]
|
||||
forKey: @"start"];
|
||||
[filter setObject: [now addTimeInterval: (limit / 2) * 86400]
|
||||
forKey: @"end"];
|
||||
}
|
||||
|
||||
#warning This method lacks support for timeranges
|
||||
- (void) _appendPropertyFilter: (id <DOMElement>) propFilter
|
||||
toFilter: (NSMutableDictionary *) filter
|
||||
@@ -1359,10 +1372,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
||||
maxStart = [self _getMaxStartDate];
|
||||
if (maxStart)
|
||||
{
|
||||
[filterData setObject: maxStart
|
||||
forKey: @"start"];
|
||||
[filterData setObject: [NSCalendarDate distantFuture]
|
||||
forKey: @"end"];
|
||||
[self _addDateRangeLimitToFilter: filterData];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user