improve customer field access in RT queries, #16490
[freeside.git] / rt / share / html / Search / Build.html
index 7b105e4..506384c 100644 (file)
@@ -85,9 +85,9 @@
 
 <div id="pick-criteria">
     <& Elements/PickCriteria, query => $query{'Query'}, cfqueues => $queues &>
-</div>
 <& /Elements/Submit,  Label => loc('Add these terms'), Name => 'AddClause'&>
 <& /Elements/Submit, Label => loc('Add these terms and Search'), Name => 'DoSearch'&>
+</div>
 
 
 <div id="editquery">
@@ -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 '' );