diff options
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r-- | Source/TableContent.m | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m index d25799d5..4cc573c4 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -1566,10 +1566,15 @@ return; } - NSString *fieldTypeGrouping = [NSString stringWithString:[[tableDataInstance columnWithName:[[fieldField selectedItem] title]] objectForKey:@"typegrouping"]]; [compareField removeAllItems]; - + + NSString *fieldTypeGrouping; + if([[tableDataInstance columnWithName:[[fieldField selectedItem] title]] objectForKey:@"typegrouping"]) + fieldTypeGrouping = [NSString stringWithString:[[tableDataInstance columnWithName:[[fieldField selectedItem] title]] objectForKey:@"typegrouping"]]; + else + return; + if ( [fieldTypeGrouping isEqualToString:@"date"] ) { compareType = @"date"; |