[rt-users] Help with scrip
Kenneth Crocker
KFCrocker at lbl.gov
Mon May 7 19:01:21 EDT 2007
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
>
>
More information about the rt-users
mailing list