diff options
author | Struan Donald <struan@exo.org.uk> | 2013-02-12 17:43:20 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-02-12 17:43:20 +0000 |
commit | be574e3929fa514480f4a051e6a41c0979391b46 (patch) | |
tree | 4be742d8434cd7bb4a63c4a79b3166d0c8834c72 /perllib/FixMyStreet/App/Controller/Report.pm | |
parent | 560070b5a4eb210aeb08f78c553b6caa6144fbc9 (diff) |
return details of updates to the report in ajax call
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index 6b222be4c..57b2d781e 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -173,7 +173,10 @@ sub format_problem_for_display : Private { if ( $c->stash->{ajax} ) { $c->res->content_type('application/json; charset=utf-8'); my $content = JSON->new->utf8(1)->encode( - $c->cobrand->problem_as_hashref( $problem, $c ) + { + report => $c->cobrand->problem_as_hashref( $problem, $c ), + updates => $c->cobrand->updates_as_hashref( $problem, $c ), + } ); $c->res->body( $content ); return 1; |