[rt-users] Adding {$Transaction->Content()} to Resolved Template does not work

Blair Zajac blair at orcaware.com
Wed Jan 9 16:46:25 EST 2002


Jesse Vincent wrote:
> 
> On Wed, Jan 09, 2002 at 11:31:35AM -0800, Blair Zajac wrote:
> > When I add
> >
> >       {$Transaction->Content()}
> >
> > to the default Resolved Template to have the resolve message sent to the
> > requester, nothing additional is added to the email, the only thing I get is
> > the normal text.
> 
> If you take a look, you'll note that the comment or correspondence is a
> seperate transaction. You'll want do something like take $Ticket->Transactions,
> limit it to corresondence and then pull the content of the last one..

How does one write complicated code in a Scrip?  Trying something like

    { join(" ", keys %\{$Ticket->Transactions\} )

and protecting each { } gets old after a while?

Also, how does one append to the output buffer in the right order?  If you
use something like

{ for my $i (1..10) \{
 print "$i<br>\n";
\} }

then the numbers are sent to the browser even before the HTTP headers are.

Best,
Blair

> 
> 
> > How does one work around this?  Is this a bug?
> 
> It's by design. It's design that I'm considering the best way to rework ;)
> 
> Thanks,
> Jesse
> 
> --
> http://www.bestpractical.com/products/rt  -- Trouble Ticketing. Free.

-- 
Blair Zajac <blair at orcaware.com>
Web and OS performance plots - http://www.orcaware.com/orca/




More information about the rt-users mailing list