diff options
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index 68115c71c..02bf97f00 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -722,6 +722,15 @@ sub report_edit : Path('report_edit') : Args(1) { # do this here otherwise lastupdate and confirmed times # do not display correctly $problem->discard_changes; + + if ( $c->cobrand->moniker eq 'zurich' && $c->req->param('body') ) { + my $problem_body = $c->req->param('body'); + my $admin_body = $c->stash->{body}; + if ($admin_body ne $problem_body) { + $c->detach('index'); + } + } + } } |