[Rt-commit] [rtir] 06/07: update code accordingly for the parse tree change in RT 4.4
? sunnavy
sunnavy at bestpractical.com
Fri Oct 16 14:08:25 EDT 2015
This is an automated email from the git hooks/post-receive script.
sunnavy pushed a commit to branch 3.4/rt-4.4-compat
in repository rtir.
commit 437f0b00887f8f6d8831b9f4cc22b31f7f8ce6b6
Author: sunnavy <sunnavy at bestpractical.com>
Date: Sat Oct 17 01:50:41 2015 +0800
update code accordingly for the parse tree change in RT 4.4
see also b68c84f0 in RT
---
html/RTIR/Search/Elements/ProcessQuery | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/html/RTIR/Search/Elements/ProcessQuery b/html/RTIR/Search/Elements/ProcessQuery
index 9469048..e2e27d1 100644
--- a/html/RTIR/Search/Elements/ProcessQuery
+++ b/html/RTIR/Search/Elements/ProcessQuery
@@ -164,30 +164,11 @@ foreach my $arg ( keys %ARGS ) {
for ( my $i = 0; $i < @ops; $i++ ) {
my ( $op, $value ) = ( $ops[$i], $values[$i] );
next if !defined $value || $value eq '';
- my $rawvalue = $value;
-
- if ( $value =~ /^NULL$/i && $op =~ /=/ ) {
- if ( $op eq '=' ) {
- $op = "IS";
- }
- elsif ( $op eq '!=' ) {
- $op = "IS NOT";
- }
- }
- elsif ($value =~ /\D/) {
- $value =~ s/(['\\])/\\$1/g;
- $value = "'$value'";
- }
-
- if ($keyword =~ s/(['\\])/\\$1/g or $keyword =~ /[^{}\w\.]/) {
- $keyword = "'$keyword'";
- }
my $clause = {
Key => $keyword,
Op => $op,
Value => $value,
- RawValue => $rawvalue,
};
push @new_values, RT::Interface::Web::QueryBuilder::Tree->new($clause);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list