mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-26 15:40:32 +00:00
Monotone-Parent: 9adad96605712f34ea4b5d3a10c392e250208cab
Monotone-Revision: f91865d8f9470a31d323ceafab1bbc5f1f2b42ec Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-09-22T20:33:30 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -2036,19 +2036,16 @@ static Class sogoAppointmentFolderKlass = Nil;
|
||||
NSString *cTag;
|
||||
|
||||
folder = [self ocsFolder];
|
||||
if (!cTagSpec)
|
||||
{
|
||||
ordering = [EOSortOrdering sortOrderingWithKey: @"c_lastmodified"
|
||||
selector: EOCompareDescending];
|
||||
cTagSpec = [EOFetchSpecification
|
||||
fetchSpecificationWithEntityName: [folder folderName]
|
||||
qualifier: nil
|
||||
sortOrderings: [NSArray arrayWithObject: ordering]];
|
||||
[cTagSpec retain];
|
||||
}
|
||||
ordering = [EOSortOrdering sortOrderingWithKey: @"c_lastmodified"
|
||||
selector: EOCompareDescending];
|
||||
cTagSpec = [EOFetchSpecification
|
||||
fetchSpecificationWithEntityName: [folder folderName]
|
||||
qualifier: nil
|
||||
sortOrderings: [NSArray arrayWithObject: ordering]];
|
||||
|
||||
records = [folder fetchFields: [NSArray arrayWithObject: @"c_lastmodified"]
|
||||
fetchSpecification: cTagSpec];
|
||||
fetchSpecification: cTagSpec
|
||||
ignoreDeleted: NO];
|
||||
if ([records count])
|
||||
{
|
||||
lastModified = [[records objectAtIndex: 0] objectForKey: @"c_lastmodified"];
|
||||
|
||||
Reference in New Issue
Block a user