diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-01-17 11:21:36 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-01-17 11:21:36 +0000 |
commit | 06dc017f266bdca73fc6cea7a603082eeea0bd8c (patch) | |
tree | e311b9c84f389c9260b81f9cccc1dcaa7fb48d46 /perllib/FixMyStreet/App/Controller | |
parent | 60a19ef31281df06372938f3acf26465850f457b (diff) |
Reports does speedy inflate-bypassing query, so manually inflate if needed.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Reports.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm index 39f9117e8..f4093ef21 100644 --- a/perllib/FixMyStreet/App/Controller/Reports.pm +++ b/perllib/FixMyStreet/App/Controller/Reports.pm @@ -5,6 +5,7 @@ use namespace::autoclean; use File::Slurp; use List::MoreUtils qw(zip); use POSIX qw(strcoll); +use RABX; use mySociety::MaPit; BEGIN { extends 'Catalyst::Controller'; } @@ -393,6 +394,10 @@ sub load_and_group_problems : Private { while ( my @problem = $problems->next ) { my %problem = zip @cols, @problem; $problem{is_fixed} = FixMyStreet::DB::Result::Problem->fixed_states()->{$problem{state}}; + if ($problem{extra} && $c->cobrand->moniker eq 'zurich') { # Inflate + utf8::encode($problem{extra}) if utf8::is_utf8($problem{extra}); + $problem{extra} = RABX::unserialise($problem{extra}); + } $c->log->debug( $problem{'cobrand'} . ', cobrand is ' . $c->cobrand->moniker ); if ( !$c->stash->{body}->id ) { # An external_body entry |