[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-107-g5cc7375

Ruslan Zakirov ruz at bestpractical.com
Tue Jul 6 09:17:00 EDT 2010


The branch, 3.8-trunk has been updated
       via  5cc73752fcb4116f599fa05aa5bcfa54406455cb (commit)
      from  ae6c5a08e4e989ede43af1e245845f5b38213bad (commit)

Summary of changes:
 .../Ticket/Elements/ShowTransactionAttachments     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 5cc73752fcb4116f599fa05aa5bcfa54406455cb
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Tue Jul 6 17:17:55 2010 +0400

    we mistakenly were reporting megabytes as bytes

diff --git a/share/html/Ticket/Elements/ShowTransactionAttachments b/share/html/Ticket/Elements/ShowTransactionAttachments
index a8cdfc1..ea3fc87 100644
--- a/share/html/Ticket/Elements/ShowTransactionAttachments
+++ b/share/html/Ticket/Elements/ShowTransactionAttachments
@@ -129,7 +129,7 @@ my $size_to_str = sub {
     my $size = shift;
     # show a download link
     if ( $size > 1024*1024 ) {
-        $size = loc( "[_1]b", int( $size / 1024 / 102.4 ) / 10 );
+        $size = loc( "[_1]M", int( $size / 1024 / 102.4 ) / 10 );
     }
     elsif ( $size > 1024 ) {
         $size = loc( "[_1]k", int( $size / 102.4 ) / 10 );

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


More information about the Rt-commit mailing list