[rt-users] Question about LimitCustomField

Scott Hebert scott at cae.com
Fri Oct 17 16:59:53 EDT 2003


I think I was mistaken in my logic ...

Another question: How can I do a LimitCustomValues to get all Tickets that
have null values for a Custom Field?

Thanks,

SH

-----Original Message-----
From: Phil Homewood [mailto:pdh at snapgear.com]
Sent: Thursday, October 16, 2003 11:06 PM
To: rt-users at lists.fsck.com
Subject: Re: [rt-users] Question about LimitCustomField


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
_______________________________________________
rt-users mailing list
rt-users at lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm






More information about the rt-users mailing list