[rt-users] Custom Fields query vs. CLI edit syntaxinconsistencies

Philip Kime pkime at Shopzilla.com
Thu Jun 22 17:37:31 EDT 2006


Here's a simple patch to $rtroot/share/html/REST/1.0/search/ticket to
enable searches to use either format

*** /usr/local/rt/share/html/REST/1.0/search/ticket     2006-05-25
21:11:58.000000000 -0700
--- /tmp/ticket 2006-06-22 14:57:12.634046264 -0700
***************
*** 82,87 ****
--- 82,91 ----
  }

  my ($n, $s);
+
+ # Allow queries involving CFs to use the REST-style syntax
+ $query =~ s/\bCF-([^\s]+)/CF\.\{$1\}/g;
+
  eval {
      ($n, $s) = $tickets->FromSQL($query);
  };




More information about the rt-users mailing list