[Rt-commit] rt branch, 4.6/set-default-attachmentlistcount, created. rt-4.4.3-200-gabb56605f

Maureen Mirville maureen at bestpractical.com
Thu Feb 14 18:46:58 EST 2019


The branch, 4.6/set-default-attachmentlistcount has been created
        at  abb56605f0c15b7bd2c7e941ee99472142ed060d (commit)

- Log -----------------------------------------------------------------
commit abb56605f0c15b7bd2c7e941ee99472142ed060d
Author: Maureen E. Mirville <maureen at bestpractical.com>
Date:   Thu Feb 14 17:49:25 2019 -0500

    Set the $AttachmentListCount config's default value
    
    The $AttachmentListCount value was previously set to undef, meaning
    all attachments on a ticket were displayed. When a ticket has a
    significant amount of attachments, the long list in the portlet
    affects ticket usability and may affect page load time.

diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 54e5949e7..5c3574066 100644
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -2222,14 +2222,14 @@ Set($AlwaysDownloadAttachments, undef);
 
 =item C<$AttachmentListCount>
 
-The number of attachments to display by default on ticket display and ticket
-reply pages. Attachments beyond this count will be displayed only after the
-user clicks a "Show all" link. The default value, C<undef>, means always show
-all attachments. A value of C<0> means show no attachments by default.
+By default, the number of attachments displayed on ticket display and ticket
+reply pages is 5. Attachments beyond this count will be displayed only after the
+user clicks a "Show all" link. If this config is set C<undef>, all attachments
+will be shown. A value of C<0> means show no attachments by default.
 
 =cut
 
-Set($AttachmentListCount, undef);
+Set($AttachmentListCount, 5);
 
 =item C<$PreferRichText>
 

-----------------------------------------------------------------------


More information about the rt-commit mailing list