[Rt-commit] [svn] r772 - rt/branches/rt-3.1/html/Search/Elements

leira at pallas.eruditorum.org leira at pallas.eruditorum.org
Thu Apr 29 15:42:47 EDT 2004


Author: leira
Date: Thu Apr 29 15:42:46 2004
New Revision: 772

Modified:
   rt/branches/rt-3.1/html/Search/Elements/PickCFs
Log:
Add CFs to the query.


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	Thu Apr 29 15:42:46 2004
@@ -23,16 +23,22 @@
 %# END LICENSE BLOCK
 <table cellspacing=0 border=0>
 % while ( my $CustomField = $CustomFields->Next ) {
-
 <tr><td>
 
+% my $name;
+% if ($CustomField->QueueObj->Name) {
+%   $name = "CF." . $CustomField->QueueObj->Name . 
+%	".{" . $CustomField->Name . "}";
+% } else {
+%   $name = "CF." . $CustomField->Name;
+% }
 <% $CustomField->Name %> 
-        <& /Elements/SelectCustomFieldOperator, Name => "CustomFieldOp". $CustomField->id, 
+        <& /Elements/SelectCustomFieldOperator, Name => $name . "Op", 
                                     True => loc("is"), 
                                     False => loc("isn't"), 
                                     TrueVal=> '=', FalseVal => '!=' &>
 
-<& /Elements/SelectCustomFieldValue, Name => "CustomField".$CustomField->id,
+<& /Elements/SelectCustomFieldValue, Name => "ValueOf" . $name,
                             CustomField => $CustomField,
                             &>
 </td></tr>


More information about the Rt-commit mailing list