[Rt-commit] rt branch, 4.0/flush-excel-download, created. rt-4.0.22-12-g80c3b30

? sunnavy sunnavy at bestpractical.com
Wed Oct 8 10:17:20 EDT 2014


The branch, 4.0/flush-excel-download has been created
        at  80c3b30799af3d984b0b65c7ad87e49a6018e74b (commit)

- Log -----------------------------------------------------------------
commit 80c3b30799af3d984b0b65c7ad87e49a6018e74b
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Oct 8 21:48:30 2014 +0800

    flush buffer so user can see the download is working

diff --git a/share/html/Search/Results.tsv b/share/html/Search/Results.tsv
index 0c57711..bf09dca 100644
--- a/share/html/Search/Results.tsv
+++ b/share/html/Search/Results.tsv
@@ -118,6 +118,7 @@ else {
     $Tickets->OrderBy( FIELD => $OrderBy, ORDER => $Order );
 }
 
+my $i = 0;
 my $ii = 0;
 while (my $row = $Tickets->Next) {
     for my $col (@columns) {
@@ -130,6 +131,7 @@ while (my $row = $Tickets->Next) {
             $val;
         } @$col)."\n");
     }
+    $m->flush_buffer unless ++$i % 10;
 }
 $m->abort();
 

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


More information about the rt-commit mailing list