[rt-users] Limit users by a non-empty customfield
Kevin Falcone
falcone at bestpractical.com
Tue Jun 29 11:00:37 EDT 2010
On Tue, Jun 29, 2010 at 09:29:08AM +0200, Wolfram Huettermann wrote:
> Kevin Falcone wrote:
> >On Mon, Jun 28, 2010 at 12:05:13PM +0200, Wolfram Huettermann wrote:
> >> Hello,
> >>
> >> I have got a user customfield called MyComment and I want to filter all users where this
> >> customfield is not empty. In my case, it is of freefrom type. The function LimitToCustomField
> >> does not work properly if I use
> >>
> >> $User->LimiToCostumField("FIELD" => "MyComment",
> >> "OPERATOR" => "!=",
> >> "VALUE" => "");
> >
> >I assume you meant LimitCustomField, and that doesn't take a FIELD
> >argument
> >
> Yes, you are totally right.
>
> But even this code:
>
> $User->LimiToCostumField("CUSTOMFIELD" => "MyComment",
> "OPERATOR" => "!=",
> "VALUE" => "");
>
You're still using the wrong method name. There is no method
LimitToCustomField on Users objects.
-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100629/da5458c0/attachment.sig>
More information about the rt-users
mailing list