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

Maureen Mirville maureen at bestpractical.com
Mon Mar 4 11:24:06 EST 2019


The branch, 4.4/set-default-attachmentlistcount has been created
        at  2d553c2f6854619d92d444158d539396490a9dbf (commit)

- Log -----------------------------------------------------------------
commit 2d553c2f6854619d92d444158d539396490a9dbf
Author: Maureen E. Mirville <maureen at bestpractical.com>
Date:   Mon Mar 4 10:04:06 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