[rt-devel] Re: Error in Template?

Russ McFatter russ at intranet.com
Mon May 7 12:52:13 EDT 2001


Mark vevers <mark at ifl.net> writes:

(in RT 1.3.70)
>The status change template appears to be broken...

Indeed, it is.  The problem is that a given transaction
doesn't necessarily have any content-- a status change
like "take", "open", etc.

The default template doesn't take that into account.

Go to Administration->Global->Scrips->7/StatusChange,
and add a condition to the Scrip.  In the example which
follows, if there's no content to the transaction, the
template doesn't try to include it:


|Subject: Status Changed to: {$Transaction->NewValue}
|
|
|{$RT::WebURL}/Ticket/Display.html?id={$Ticket->id}
|
|{$Transaction->Message()->First()->Content() if
$Transaction->|Message()->First()}


That cleared up the problem here.

--- Russ McFatter [russ at intranet.com]





More information about the Rt-devel mailing list