aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm2
-rw-r--r--perllib/FixMyStreet/Cobrand/FixMyBarangay.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index 57b2d781e..24dececac 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -221,7 +221,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()' );
diff --git a/perllib/FixMyStreet/Cobrand/FixMyBarangay.pm b/perllib/FixMyStreet/Cobrand/FixMyBarangay.pm
index 1eda6cf43..c7535f856 100644
--- a/perllib/FixMyStreet/Cobrand/FixMyBarangay.pm
+++ b/perllib/FixMyStreet/Cobrand/FixMyBarangay.pm
@@ -34,7 +34,7 @@ sub only_authed_can_create {
}
# effectively allows barangay staff to hide reports
-sub council_id { return [ 1, 2 ]; }
+sub council_id { return '1,2' ; }
sub areas_on_around {
return [ 1, 2 ];