A patch to suppress inline display of uploaded text files & speed up searching

Here’s a patch to add two vaguely related features:

If $SuppressInlineTextFiles is set to a true value, then

attached,

named text files are prevented from being displayed in-line in

a

ticket display. Although this is usually what users expect, it

is

not the

default.

Set($SuppressInlineTextFiles, undef);

If $DontSearchFileAttachments is set to a true value, then

named

attached files are not searched. Although this is usually

what

users expect, it is not the

default.

Set($DontSearchFileAttachments, undef);


The attached patch is to 3.6.0 and affects:

etc/RT_Config.pm.in
html/Ticket/Elements/LoadTextAttachments
html/Ticket/Elements/ShowTransactionAttachments
lib/RT/Tickets_Overlay.pm

I will admit that I need a little help with my change to
LoadTextAttachments – it doesn’t seem to have any practical effect
unless the ShowTransactionAttachments change is also applied. But it
seems harmless.

I’m submitting these because I really like these patches, and I’m
getting tired of re-applying them when I upgrade RT :wink:

-Kevin Murphy

kevins.rt.patch (3.2 KB)