[rt-devel] Problem with custom field searching in RT 3.0.2pre4

Paul Wagland pwagland at allshare.nl
Fri May 2 04:28:35 EDT 2003


Hi all,

> -----Original Message-----
> From: rt-devel-admin at lists.fsck.com
> [mailto:rt-devel-admin at lists.fsck.com]On Behalf Of Robert Spier
> Sent: Friday, May 02, 2003 1:14
> --- lib/RT/Tickets_Overlay.pm   10 Mar 2003 03:01:17 -0000      1.35
> +++ lib/RT/Tickets_Overlay.pm   1 May 2003 23:12:53 -0000
> @@ -147,7 +147,7 @@
>                                      'NOT LIKE' => 'AND'
>                                    },
>
> -                 CUSTOMFIELD   => 'OR',
> +                 CUSTOMFIELD   => 'AND',
>                  );
>
>
> In theory, the above patch does what we've discussed.

Unfortunately, it doesn't quite do what you would expect, or more precisely
quite what I would expect :-)

What this does is and *all* of the custom fields together. What we need to
be consistent with the other fields, is that different custom fields are
anded, and different selections of the same custom field are ored.

ie. (CF.Product = 'proda' OR CF.Product = 'prodb') AND CF.Version = '1.0.0'

Cheers,
Paul





More information about the Rt-devel mailing list