[Rt-commit] [rtir] 02/02: Update code to handle upstream's change in quotes
Kevin Falcone
falcone at bestpractical.com
Thu Nov 20 11:38:48 EST 2014
This is an automated email from the git hooks/post-receive script.
falcone pushed a commit to branch 3.2/no-quotes-in-cf-search-attributes
in repository rtir.
commit dff751c52fb2cd7e359a05b1c8dc26bcb355012b
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Thu Nov 20 11:27:09 2014 -0500
Update code to handle upstream's change in quotes
bestpractical/rt at 3bef226f stopped quoting the name of the custom field
because it caused more problems than it ever solved.
This code should likely bring down core's support for TxnCF but that's
out of scope for this fix.
---
html/RTIR/Search/Elements/ProcessQuery | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html/RTIR/Search/Elements/ProcessQuery b/html/RTIR/Search/Elements/ProcessQuery
index 98da5c0..df621f4 100644
--- a/html/RTIR/Search/Elements/ProcessQuery
+++ b/html/RTIR/Search/Elements/ProcessQuery
@@ -122,7 +122,7 @@ my @new_values = ();
# {{{ Try to find if we're adding a clause
foreach my $arg ( keys %ARGS ) {
- next unless $arg =~ m/^ValueOf(\w+|'CF.{.*?}')$/
+ next unless $arg =~ m/^ValueOf(\w+|CF.{.*?})$/
&& ( ref $ARGS{$arg} eq "ARRAY"
? grep $_ ne '', @{ $ARGS{$arg} }
: $ARGS{$arg} ne '' );
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list