[rt-users] problems writing a ScripCondition: On Merge

Justin Larue jlarue at commpartners.us
Fri Jan 21 18:05:21 EST 2005


Thanks for your quick response!  

Ruslan U. Zakirov (Ruslan.Zakirov at acronis.com) wrote:

> Description could be localized so you can't relay on it.
> Use next:
>
> my $txn = $self->TransactionObj;
> return undef unless $txn->Type =~ /^AddLink$/i;
> return undef unless $txn->Field =~ /^MergedInto$/i;
> return 1;

This works perfectly.  Thank you!

> You could put { $Transaction->Whatever } in the template. Where
exactly 
> did you see that on wiki?

http://wiki.bestpractical.com/index.cgi?Template uses both $Transaction
and $TransactionObj in its template examples.

Justin Larue
CommPartners
(702) 367-VOIP (8647) Phone ext. 1022
(702) 365-VOIP (8647) Fax
jlarue at commpartners.us
www.commpartners.us




More information about the rt-users mailing list