X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FSearch%2FResults.tsv;h=b28ea481674247cae0172f7d87c948d62d06b3a4;hp=6d8253e78ab45fb1cf75a27be53cb639666037ac;hb=919e930aa9279b3c5cd12b593889cd6de79d67bf;hpb=45d35d5739d05e602bc317739485693e0e9ff0b5 diff --git a/rt/share/html/Search/Results.tsv b/rt/share/html/Search/Results.tsv index 6d8253e78..b28ea4816 100644 --- a/rt/share/html/Search/Results.tsv +++ b/rt/share/html/Search/Results.tsv @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -71,7 +71,7 @@ my $col_entry = sub { delete $col->{title} if $col->{title} and $col->{title} =~ /^\s*#\s*$/; return { - header => Encode::encode_utf8(loc($col->{title} || $col->{attribute})), + header => loc($col->{title} || $col->{attribute}), map => $m->comp( "/Elements/ColumnMap", Name => $col->{attribute}, @@ -119,6 +119,7 @@ else { $Tickets->OrderBy( FIELD => $OrderBy, ORDER => $Order ); } +my $i = 0; my $ii = 0; while (my $row = $Tickets->Next) { for my $col (@columns) { @@ -128,9 +129,10 @@ while (my $row = $Tickets->Next) { # remove tabs from all field values, they screw up the tsv $val = '' unless defined $val; $val =~ s/(?:\n|\r)//g; $val =~ s{\t}{ }g; - Encode::encode_utf8($val); + $val; } @$col)."\n"); } + $m->flush_buffer unless ++$i % 10; } $m->abort();