[rt-users] Original request in owner change template

Marko Cupać marko.cupac at mimar.rs
Fri Apr 26 08:52:50 EDT 2013


This is what I get in the log when I put that into my template:

[Fri Apr 26 12:46:26 2013] [error]: Template parsing error: Can't call
method "Transactions" on an undefined value at template line 5.

-- 
Marko Cupać


On Fri, 26 Apr 2013 16:17:03 +0400
Ruslan Zakirov <ruz at bestpractical.com> wrote:

> On Fri, Apr 26, 2013 at 2:57 PM, Marko Cupać <marko.cupac at mimar.rs>
> wrote:
> 
> > Is it possible (maybe by help of TransactionBatchStage) to include
> > text of original request in owner change template, similar to
> > including last comment on ticket resolve?
> >
> >
> You don't need batch stage for that. You just need first transaction
> of type Create.
> 
> ...
> my $txns = $ticket->Transactions;
> $txns->Limit( FIELD => 'Type', VALUE => 'Create' );
> my $txn = $txns->First;
> ...
> 
> --
> > Marko Cupać
> >
> 
> 
> 



More information about the rt-users mailing list