[rt-users] Displaying Comments in Templates
Phil Homewood
pdh at bestpractical.com
Tue Mar 9 00:48:01 EST 2004
Andy Harrison wrote:
> last comment:
> ---
> {
> my $resolution_comment;
> my $Transactions = $Ticket->Transactions;
> $Transactions->OrderBy( FIELD => 'id', ORDER => 'DESC' );
> $Transactions->GotoFirstItem;
> while (my $Transaction = $Transactions->Next) {
> if ($Transaction->Type eq 'Correspond') {
> $resolution_comment = $Transaction->First->Content;
> last;
> }
> }
> $OUT .= $resolution_comment;
> $OUT;
> }
> ---
The "last" in the loop there sounds like exactly what you
don't want...
--
»|« http://www.bestpractical.com/rt -- Trouble Ticketing. Free.
More information about the rt-users
mailing list