[rt-users] Help with scrip
Gene LeDuc
gleduc at mail.sdsu.edu
Mon May 7 19:15:51 EDT 2007
Hi Kenn,
Lose the "$" in front of TransactionObj. It should be $self->TransactionObj.
Gene
At 04:01 PM 5/7/2007, Kenneth Crocker wrote:
>Gene,
>
> Thanks, But it still doesn't work. I now have
>
>return 0 unless {$self->$TransactionObj->Field eq 'Owner'};
>return 0 unless {$self->$TransactionObj->OldValue eq $RT::Nobody->Id};
>return 1;
>
>
> and I get nothing. Any other ideas?
>
>Kenn
>LBNL
>
>Gene LeDuc wrote:
>>Hi Kenn,
>>You want to be comparing OldValue to $RT->Nobody->Id instead of to
>>'Nobody' like so:
>> return 0 unless $self->TransactionObj->OldValue == $RT::Nobody->Id;
>>Gene
>>At 12:03 PM 4/27/2007, Kenneth Crocker wrote:
>>>To all,
>>>
>>>
>>> I cannot get the following scrip to run:
>>>
>>>#
>>># Check for "Nobody' before continuing - saves spam
>>>#
>>>return 0 unless $self->$TransactionObj->Field eq 'Owner';
>>>return 0 unless $self->$TransactionObj->OldValue ne 'Nobody';
>>>return 1;
>>>
>>> Any ideas?
>>>
>>>Kenn
>>>LBNL
>>>_______________________________________________
>>>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>>>
>>>Community help: http://wiki.bestpractical.com
>>>Commercial support: sales at bestpractical.com
>>>
>>>
>>>Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy
>>>a copy at http://rtbook.bestpractical.com
>
>
>--
>Gene LeDuc, GSEC
>Security Analyst
>San Diego State University
More information about the rt-users
mailing list