aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-01-17 13:03:39 +0000
committerStruan Donald <struan@exo.org.uk>2013-01-17 13:03:39 +0000
commit51e2cb1945508d904e907cb4424cc2344c3fd96c (patch)
tree0887c22e88f04ae3283a81db747066d30342131d /perllib/FixMyStreet/App/Controller
parent00d711fc3cb01050d69862e1c7dce5ff8dee6e34 (diff)
parentd3491b7ebc217c32b7da50d7c9b76e26fa0b6c4f (diff)
Merge remote-tracking branch 'origin/zurich' into zurich
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r--perllib/FixMyStreet/App/Controller/Reports.pm5
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