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

Jesse Vincent jesse at bestpractical.com
Wed Jan 9 16:51:46 EST 2002


It's a Text::Template.

perldoc Text::Template should tell you what you need to know about it.


On Wed, Jan 09, 2002 at 01:46:25PM -0800, Blair Zajac wrote:
> 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/
> 

-- 
http://www.bestpractical.com/products/rt  -- Trouble Ticketing. Free.




More information about the rt-users mailing list