diff options
author | Struan Donald <struan@exo.org.uk> | 2013-02-12 12:12:01 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-02-12 12:12:01 +0000 |
commit | 8d9bc808b3288aa5a00975c0e981b9d857836ed0 (patch) | |
tree | f7071977645c1b1690063e9125cea44a1fadfbf5 /perllib/FixMyStreet/App/Controller/Report.pm | |
parent | 29d1f70b3a2df58ba6c3212080744fc48dd4cb5f (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.pm | 2 |
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; |