summaryrefslogtreecommitdiff
path: root/rt/share/html
diff options
context:
space:
mode:
authorivan <ivan>2010-07-21 02:10:33 +0000
committerivan <ivan>2010-07-21 02:10:33 +0000
commit2727a5a28a05f7c6c9480563670da29fc0b0bc8b (patch)
tree4c5da796e057dfe628c6ae05a84912c658fdc3dd /rt/share/html
parent1932aeb09f14c6293905882806fd50a277e45ee9 (diff)
fix problems searching the new custom fields w/dates, RT#8449
Diffstat (limited to 'rt/share/html')
-rw-r--r--rt/share/html/Search/Build.html2
-rw-r--r--rt/share/html/Search/Elements/PickCFs2
2 files changed, 2 insertions, 2 deletions
diff --git a/rt/share/html/Search/Build.html b/rt/share/html/Search/Build.html
index f347acd79..c5067d5d1 100644
--- a/rt/share/html/Search/Build.html
+++ b/rt/share/html/Search/Build.html
@@ -188,7 +188,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 '' );
diff --git a/rt/share/html/Search/Elements/PickCFs b/rt/share/html/Search/Elements/PickCFs
index 3f6d188b8..beda9f733 100644
--- a/rt/share/html/Search/Elements/PickCFs
+++ b/rt/share/html/Search/Elements/PickCFs
@@ -76,7 +76,7 @@ $m->callback(
my @lines;
while ( my $CustomField = $CustomFields->Next ) {
my %line;
- $line{'Name'} = "CF.{" . $CustomField->Name . "}";
+ $line{'Name'} = "'CF.{" . $CustomField->Name . "}'";
$line{'Field'} = $CustomField->Name;
# Op