[Rt-commit] [rtir] 01/01: Remove a horrid and wrong unquoting regex used by GetReferencedQueues
Kevin Falcone
falcone at bestpractical.com
Mon Jul 21 12:36:09 EDT 2014
This is an automated email from the git hooks/post-receive script.
falcone pushed a commit to branch 3.2/missing-cfs-on-search
in repository rtir.
commit 899e2b5fb9d7070ed4dd06f7c4795a9d0e2f20ce
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Mon Mar 28 15:23:38 2011 -0400
Remove a horrid and wrong unquoting regex used by GetReferencedQueues
GetReferencedQueues used to return the Value keys of the tree that
RT::Interface::Web::QueryBuildeR::Tree returned -- which are simply a
re-escaping of what the TicketSQL parser found. Skip having to
un-escape the re-escaped values by storing them away explicitly.
[RT commit that
fixes issues #30034
for RTIR]
---
html/RTIR/Search/Elements/ProcessQuery | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/html/RTIR/Search/Elements/ProcessQuery b/html/RTIR/Search/Elements/ProcessQuery
index 0b98371..98da5c0 100644
--- a/html/RTIR/Search/Elements/ProcessQuery
+++ b/html/RTIR/Search/Elements/ProcessQuery
@@ -152,6 +152,7 @@ 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 eq 'NULL' && $op =~ /=/ ) {
if ( $op eq '=' ) {
@@ -172,7 +173,8 @@ foreach my $arg ( keys %ARGS ) {
my $clause = {
Key => $keyword,
Op => $op,
- Value => $value
+ 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