[rt-users] This transaction appears to have no content

testwreq wreq testwreq at gmail.com
Sun Aug 23 00:47:41 EDT 2009


The script change worked. Thanks so much!

On Fri, Aug 21, 2009 at 4:14 PM, Stephen Turner <sturner at mit.edu> wrote:

>  On Fri, 21 Aug 2009 15:37:50 -0400, testwreq wreq <testwreq at gmail.com>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090823/c8e0e1e1/attachment.htm>


More information about the rt-users mailing list