[Rt-commit] rt branch, 4.0/sort-attachments, updated. rt-4.0.1rc1-36-g6a036f5

Thomas Sibley trs at bestpractical.com
Fri Jul 29 10:38:51 EDT 2011


The branch, 4.0/sort-attachments has been updated
       via  6a036f543b81f20aad26afe768d27268f6b58de9 (commit)
      from  61db454cc0084b69339c32d1ccfd7f1daff16914 (commit)

Summary of changes:
 share/html/Ticket/Elements/ShowAttachments |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 6a036f543b81f20aad26afe768d27268f6b58de9
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Fri Jul 29 10:38:22 2011 -0400

    Ignore case when sorting attachments by filename

diff --git a/share/html/Ticket/Elements/ShowAttachments b/share/html/Ticket/Elements/ShowAttachments
index 60b0179..12490f7 100755
--- a/share/html/Ticket/Elements/ShowAttachments
+++ b/share/html/Ticket/Elements/ShowAttachments
@@ -51,7 +51,7 @@
         class => 'ticket-info-attachments',
         color => "#336699" &>
 
-% foreach my $key (sort keys %documents) {
+% foreach my $key (sort { lc($a) cmp lc($b) } keys %documents) {
 
 <%$key%><br />
 <ul>

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


More information about the Rt-commit mailing list