aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-02-19 16:00:09 +0000
committerBibiko <bibiko@eva.mpg.de>2010-02-19 16:00:09 +0000
commite82b66825a20ab9abb62a09cc29361af6343648b (patch)
treeb5c45bde40ebff12573120aefeed0a35a1c8f0fb /Source/TableContent.m
parent10316c1a2e8448e5dd93a1d10c7e039115864925 (diff)
downloadsequelpro-e82b66825a20ab9abb62a09cc29361af6343648b.tar.gz
sequelpro-e82b66825a20ab9abb62a09cc29361af6343648b.tar.bz2
sequelpro-e82b66825a20ab9abb62a09cc29361af6343648b.zip
• fixed bug for Content Filter Editor, now $CURRENT_FIELD will be replaced correctly if no ${} argument is passed
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r--Source/TableContent.m5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index da6577cb..3b22db96 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -883,7 +883,7 @@
} else if (numberOfArguments == 1) {
filterString = [NSString stringWithFormat:clause, [self escapeFilterArgument:argument againstClause:clause]];
} else {
- filterString = [NSString stringWithString:[filter objectForKey:@"Clause"]];
+ filterString = [NSString stringWithString:clause];
if(numberOfArguments > 2) {
NSLog(@"Filter with more than 2 arguments is not yet supported.");
NSBeep();
@@ -902,8 +902,7 @@
[NSString stringWithFormat:clause, [self escapeFilterArgument:argument againstClause:clause]]];
} else {
filterString = [NSString stringWithFormat:@"%@ %@",
- [[fieldField titleOfSelectedItem] backtickQuotedString],
- [filter objectForKey:@"Clause"]];
+ [[fieldField titleOfSelectedItem] backtickQuotedString], clause];
if(numberOfArguments > 2) {
NSLog(@"Filter with more than 2 arguments is not yet supported.");
NSBeep();