From e82b66825a20ab9abb62a09cc29361af6343648b Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 19 Feb 2010 16:00:09 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20bug=20for=20Content=20Filter=20Edit?= =?UTF-8?q?or,=20now=20$CURRENT=5FFIELD=20will=20be=20replaced=20correctly?= =?UTF-8?q?=20if=20no=20${}=20argument=20is=20passed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TableContent.m | 5 ++--- 1 file 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(); -- cgit v1.2.3