On Fri, 21 Aug 2009 15:37:50 -0400, testwreq wreq <[email protected]>
wrote:
> RT guru's: when an ownership changes or when the ticket has no comment,
> the ticket content produces a message
>
> "This transaction appears to have no content"
>
> We would like to change this default message to "This transaction has
> been updated. Please see above the changes"
>
> Any suggestion on how I can accomplish this?
>
> Thanks in advance, rq.
That message is coming from code in a template, something like this:
{$Transaction->Content()}
So you could modify the template code to read:
{
my $out = "";
if ($Transaction->Content() eq 'This transaction appears to have no
content') {
$out = 'This transaction has been updated. Please see above the changes'
} else {
$out = $Transaction->Content();
}
$out;
}
or more simply
{$Transaction->Content() eq 'This transaction appears to have no content' ?
'This transaction has been updated. Please see above the changes' :
$Transaction->Content();
}
Haven't tested the code so there may be typos, but the general idea should
work.
Steve
--
Stephen Turner
Senior Programmer/Analyst - SAIS
MIT IS&T
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [email protected]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com