aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2016-07-10 01:24:52 +0200
committerMax <post@wickenrode.com>2016-07-10 01:24:52 +0200
commit7f8e159900b8fb365aab72b146a05ffc3699f4dd (patch)
tree7ffeaa8457bac4164500bbd16456a9b31f7a9a93 /Source
parente155d94a911e4acf45d36d931299b1cb34cac41d (diff)
downloadsequelpro-7f8e159900b8fb365aab72b146a05ffc3699f4dd.tar.gz
sequelpro-7f8e159900b8fb365aab72b146a05ffc3699f4dd.tar.bz2
sequelpro-7f8e159900b8fb365aab72b146a05ffc3699f4dd.zip
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
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableContent.m2
1 files changed, 1 insertions, 1 deletions
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]];