]> git.uio.no Git - usit-rt.git/blob - lib/RT/Interface/Web/QueryBuilder/Tree.pm.rej
Initial commit 4.0.5-3
[usit-rt.git] / lib / RT / Interface / Web / QueryBuilder / Tree.pm.rej
1 ***************
2 *** 274,280 ****
3               $value =~ s/(['\\])/\\$1/g;
4               $value = "'$value'";
5           }
6 -         $key = "'$key'" if $key =~ /^CF./;
7   
8           my $clause = { Key => $key, Op => $op, Value => $value };
9           $node->addChild( __PACKAGE__->new( $clause ) );
10 --- 274,283 ----
11               $value =~ s/(['\\])/\\$1/g;
12               $value = "'$value'";
13           }
14
15 +         if ($key =~ s/(['\\])/\\$1/g or $key =~ /\s/) {
16 +             $key = "'$key'";
17 +         }
18   
19           my $clause = { Key => $key, Op => $op, Value => $value };
20           $node->addChild( __PACKAGE__->new( $clause ) );