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

Maureen Mirville maureen at bestpractical.com
Fri Apr 5 03:40:25 EDT 2019


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

- Log -----------------------------------------------------------------
commit bf624a65809e82c1285a832d43f0597e74e3bcc8
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.

diff --git a/docs/UPGRADING-4.4 b/docs/UPGRADING-4.4
index 1fc0fe133..28b65f9d6 100644
--- a/docs/UPGRADING-4.4
+++ b/docs/UPGRADING-4.4
@@ -615,4 +615,16 @@ now contains the reference to the message content as the name implies.
 
 =back
 
+=head1 UPGRADING FROM 4.4.4 AND EARLIER
+
+=over 4
+
+=item *
+
+We have updated the default value of the C<AttachmentListCount> config to 5.
+If you would like to restore the previous configuration, set this config to
+C<undef> in your C<RT_SiteConfig.pm>.
+
+=back
+
 =cut
diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 54e5949e7..aca243016 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
+Sets the number of attachments to display on ticket display and ticket
+update pages (default is 5). Attachments beyond this number are displayed
+only after the user clicks the "Show all" link. Set to C<undef> to always show
 all attachments. 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