[Rt-commit] [svn] r936 - in rt/branches/rt-3.1/html/Search: . Elements

leira at pallas.eruditorum.org leira at pallas.eruditorum.org
Wed May 19 18:30:51 EDT 2004


Author: leira
Date: Wed May 19 18:30:50 2004
New Revision: 936

Modified:
   rt/branches/rt-3.1/html/Search/Build.html
   rt/branches/rt-3.1/html/Search/Elements/PickCFs
Log:
CFs with spaces in the name need to have the whole thing quoted.


Modified: rt/branches/rt-3.1/html/Search/Build.html
==============================================================================
--- rt/branches/rt-3.1/html/Search/Build.html	(original)
+++ rt/branches/rt-3.1/html/Search/Build.html	Wed May 19 18:30:50 2004
@@ -647,6 +647,9 @@
 	    $ea = 'AND' if !$ea;
             $keystring = "{0.0}" . $keystring;
 
+	    if ( $key =~ /^CF./ ) {
+	        $key = "'" . $key . "'";
+	    }
             my $clause = {
                 Key   => $key,
                 Op    => $op,

Modified: rt/branches/rt-3.1/html/Search/Elements/PickCFs
==============================================================================
--- rt/branches/rt-3.1/html/Search/Elements/PickCFs	(original)
+++ rt/branches/rt-3.1/html/Search/Elements/PickCFs	Wed May 19 18:30:50 2004
@@ -27,10 +27,10 @@
 
 % my $name;
 % if ($CustomField->QueueObj) {
-%   $name = "CF." . $CustomField->QueueObj->Name . 
-%	".{" . $CustomField->Name . "}";
+%   $name = "'CF." . $CustomField->QueueObj->Name . 
+%	".{" . $CustomField->Name . "}'";
 % } else {
-%   $name = "CF." . $CustomField->Name;
+%   $name = "'CF." . $CustomField->Name . "'";
 % }
 <% $CustomField->Name %> 
         <& /Elements/SelectCustomFieldOperator, Name => $name . "Op", 


More information about the Rt-commit mailing list