[rt-users] Limit users by a non-empty customfield

Wolfram Huettermann wolfram.huettermann at desy.de
Tue Jun 29 03:29:08 EDT 2010


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
>
> -kevin
>   
> ------------------------------------------------------------------------
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
Yes, you are totally right.

But even this code:

$User->LimiToCostumField("CUSTOMFIELD" => "MyComment",
                              "OPERATOR" => "!=",
                               "VALUE" => "");


does not work.

Greetings,

Wolfram





More information about the rt-users mailing list