aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-02-12 12:12:01 +0000
committerStruan Donald <struan@exo.org.uk>2013-02-12 12:12:01 +0000
commit8d9bc808b3288aa5a00975c0e981b9d857836ed0 (patch)
treef7071977645c1b1690063e9125cea44a1fadfbf5 /perllib/FixMyStreet/App/Controller/Report.pm
parent29d1f70b3a2df58ba6c3212080744fc48dd4cb5f (diff)
move as_hashref call to the cobrand to enable applying any cobrand based workflow rules
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index 1ac8bdd5c..6b222be4c 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -173,7 +173,7 @@ 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(
- $problem->as_hashref( $c )
+ $c->cobrand->problem_as_hashref( $problem, $c )
);
$c->res->body( $content );
return 1;