[Bps-public-commit] RT-Extension-PriorityAsString branch, master, updated. 0.04_02-2-ga964257

Thomas Sibley trs at bestpractical.com
Tue Mar 12 14:01:55 EDT 2013


The branch, master has been updated
       via  a964257599d235d1d14cd0c0ea7adb5e62b430a1 (commit)
       via  65d5545bcf178e8791b86b39e4fe8e3e220de136 (commit)
      from  84116aa1ceda5b3ed6beea1733d2b3f87bfd40b8 (commit)

Summary of changes:
 html/Callbacks/PriorityAsString/Elements/RT__Ticket/ColumnMap/Once | 5 +++++
 1 file changed, 5 insertions(+)

- Log -----------------------------------------------------------------
commit 65d5545bcf178e8791b86b39e4fe8e3e220de136
Author: bergonz <bergonz at labs.it>
Date:   Tue Mar 12 15:09:23 2013 +0100

    Don't do HTML formatting when exporting a TSV
    
    This patch avoids applying HTML formatting when the priority name is printed as part of a TSV export.

diff --git a/html/Callbacks/PriorityAsString/Elements/RT__Ticket/ColumnMap/Once b/html/Callbacks/PriorityAsString/Elements/RT__Ticket/ColumnMap/Once
index 93b0965..114a55c 100644
--- a/html/Callbacks/PriorityAsString/Elements/RT__Ticket/ColumnMap/Once
+++ b/html/Callbacks/PriorityAsString/Elements/RT__Ticket/ColumnMap/Once
@@ -6,6 +6,11 @@ my $printer = sub {
     my ($class, $string) = @_;
     return '' unless defined $string && length $string;
 
+    my $request_path = $HTML::Mason::Commands::r->path_info;
+    if ($request_path =~ /Results\.tsv/) {
+        return $string;
+    }
+
     my $escaped = $m->interp->apply_escapes($string, 'h');
     my $loc_escaped = $m->interp->apply_escapes(loc($string), 'h');
     return \( qq{<span class="ticket-info-$class-}. lc($escaped) .qq{">$loc_escaped</span>} );

commit a964257599d235d1d14cd0c0ea7adb5e62b430a1
Merge: 84116aa 65d5545
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue Mar 12 11:00:03 2013 -0700

    Merge remote-tracking branch 'github/pr/2'


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



More information about the Bps-public-commit mailing list