Skip Menu |

This queue is for tickets about the RT-Extension-PriorityAsString CPAN distribution.

Report information
The Basics
Id: 82367
Status: new
Priority: 0/
Queue: RT-Extension-PriorityAsString

People
Owner: Nobody in particular
Requestors: bergonz [...] labs.it
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Fix for tsv spreadsheet output
Date: Wed, 02 Jan 2013 19:46:26 +0100
To: bug-RT-Extension-PriorityAsString [...] rt.cpan.org
From: Michele Bergonzoni <bergonz [...] labs.it>
RT-Extension-PriorityAsString puts HTML formatting in TSV output when exporting ticket search results as a spreadsheet. The fix from Tim Cutts on rt-user 2012-04-11 is to modify html/Callbacks/PriorityAsString/Elements/RT__Ticket/ColumnMap/Once to return the bare string when the HTML request path includes "Results.tsv". I modified his patch to remove extra quotes. What I am using now and works for me is to add at line 9 of the file, just after "return '' unless defined $string && length $string;" and before "my $escaped = $m->interp->apply_escapes($string, 'h');" the following snippet: my $request_path = $HTML::Mason::Commands::r->path_info; if ($request_path =~ /Results\.tsv/) { return $string; } Testing the MIME type of the HTTP reply would be cleaner, but I don't know how to do that. I already reported this as #22049 in queue rt3 at issues.bestpractical.com because I didn't know there was this specific place for this extension, and Kevin directed me here.