[Rt-commit] [rtir] 01/01: respect user's RichText preference

? sunnavy sunnavy at bestpractical.com
Mon Oct 19 13:09:38 EDT 2015


This is an automated email from the git hooks/post-receive script.

sunnavy pushed a commit to branch 3.4/quote-txn-content-type
in repository rtir.

commit 3967f1b1a29092cb67f2afc5b4d372a49d7f3d51
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Oct 20 01:07:00 2015 +0800

    respect user's RichText preference
    
    Fixes: I#30786
---
 html/RTIR/Elements/TransactionData | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html/RTIR/Elements/TransactionData b/html/RTIR/Elements/TransactionData
index 4681ec0..206b8f2 100644
--- a/html/RTIR/Elements/TransactionData
+++ b/html/RTIR/Elements/TransactionData
@@ -63,7 +63,7 @@ while ( my $Transaction = $Transactions->Next ) {
         $m->print( $headers );
     }
 
-    my $content = $Transaction->Content( Quote => $QuoteText );
+    my $content = $Transaction->Content( Quote => $QuoteText, Type => RT->Config->Get('MessageBoxRichText',  $session{'CurrentUser'}) ?  'text/html' : 'text/plain' );
     $content =~ s/\s+\z//;
     $m->print( $content );
     $m->print( "\n\n" );

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list