« Return to Thread: Editing /opt/rt4/share/html/Ticket/Elements/ShowTransactionAttachments to show HTML in display ticket body breaks RT interface.

Editing /opt/rt4/share/html/Ticket/Elements/ShowTransactionAttachments to show HTML in display ticket body breaks RT interface.

by Luong Bui Duc :: Rate this Message:

| View in Thread

Hi, 

I'm trying to set RT so it shows the HTML tables/hyperlinks directly in Display ticket page. My RT_SiteConfig.pm includes PreferRichText & TrustHTMLAttachments 1, but that only seems to work when user downloads ticket as attachment. I edited some code in this file: 

/opt/rt4/share/html/Ticket/Elements/ShowTransactionAttachments

uncommented these 2 lines: 

Line 209: #$content = $m->comp( '/Elements/ScrubHTML', Content => $content );
Line 230: #$content = $m->comp( '/Elements/ScrubHTML', Content => $content );

This seems to do the trick, but interface of RT has changed too, now buttons are underlined and labels are in blue color as hyperlinks. 

Please let me know what is the proper way to achieve this without breaking RT? 

--
Thanks a lot, 

~L

 « Return to Thread: Editing /opt/rt4/share/html/Ticket/Elements/ShowTransactionAttachments to show HTML in display ticket body breaks RT interface.