[rt-users] Help with scrip

Gene LeDuc gleduc at mail.sdsu.edu
Fri Apr 27 16:04:27 EDT 2007


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