aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 460ccaec5..3a707b18c 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -218,7 +218,7 @@ sub delete :Local :Args(1) {
my $body = $c->user->obj->from_body;
return $c->res->redirect($uri) unless $body;
- return $c->res->redirect($uri) unless $p->bodies->{$body};
+ return $c->res->redirect($uri) unless $p->bodies->{$body->id};
$p->state('hidden');
$p->lastupdate( \'ms_current_timestamp()' );