diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-03-14 15:36:39 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-03-14 15:36:39 +0000 |
commit | c34c5eeaa7122ea2f2078f0051740a78ce821cb0 (patch) | |
tree | dd2c67b20f21e0c3a7a0b12caa963eeaede540e3 /perllib | |
parent | 8884d896d6be9826d412615d37a8a4926289ed6a (diff) | |
parent | 67944e4bf8a716a45b7986b7df8fb44014265007 (diff) |
Merge remote branch 'origin/hide-problem-test'
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 2 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FixMyBarangay.pm | 2 |
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 ]; |