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:
Wolfgang Sourdeau
2008-09-22 20:33:30 +00:00
parent 0174eb1455
commit ba3718709c
2 changed files with 14 additions and 11 deletions
+8 -11
View File
@@ -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"];