From 7f8e159900b8fb365aab72b146a05ffc3699f4dd Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 10 Jul 2016 01:24:52 +0200 Subject: Fix an issue where checking and then unchecking "Suppress leading placeholder" in content filters would not work properly (code did not properly handle @NO vs nil). Issue #2511 --- Source/SPTableContent.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index 09d088d0..416b7cd8 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -1148,7 +1148,7 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper [parser setArgument:[argumentField stringValue]]; [parser setFirstBetweenArgument:[firstBetweenField stringValue]]; [parser setSecondBetweenArgument:[secondBetweenField stringValue]]; - [parser setSuppressLeadingTablePlaceholder:(!![filter objectForKey:@"SuppressLeadingFieldPlaceholder"])]; + [parser setSuppressLeadingTablePlaceholder:[[filter objectForKey:@"SuppressLeadingFieldPlaceholder"] boolValue]]; [parser setCaseSensitive:caseSensitive]; [parser setCurrentField:[fieldField titleOfSelectedItem]]; -- cgit v1.2.3