[rt-users] Question about LimitCustomField

Phil Homewood pdh at snapgear.com
Thu Oct 16 23:06:17 EDT 2003


Scott Hebert wrote:
> I have a CustomField of type SelectSingle called "Product".
> 
> $tickets->LimitCustomField(VALUE => "Product 1" , CUSTOMFIELD =>   $cfid);
> $tickets->LimitCustomField(VALUE => "Product 2" , CUSTOMFIELD =>   $cfid);
> 
> it seems that it attempts to get all the tickets that have BOTH "Product 
> 1" AND "Product 2" as values for the Custom Field "Product".

I don't believe that's how it's supposed to work; it should
only AND the limits if ($CF->Type eq 'SelectMultiple').
If that's not the case, it's probably a bug; the resulting
SQL query might help to track it down.
-- 
Phil Homewood, Systems Janitor, http://www.SnapGear.com
pdh at snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances



More information about the rt-users mailing list