aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-12-20 13:17:15 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-12-20 13:17:15 +0000
commit6eecce40b7f36e37c507bc08e78180a11264abd9 (patch)
tree7d424cdfcc9b68501b3aa153e6b5a4fb41144e6c
parent6dad33eb77eef0d27ad49f269befa5d8693fb45f (diff)
Allow changing of reports to other Zurich divisions.
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index 4fbc99838..db8a9a571 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -96,7 +96,7 @@ sub admin_bodies {
if ($type eq 'dm') {
my $body = $c->stash->{body};
- my @bodies = $c->model('DB::Body')->search( [ { id => $body->id }, { parent => $body->id } ] );
+ my @bodies = $c->model('DB::Body')->search( [ { parent => $body->parent->id }, { parent => $body->id } ] );
@bodies = sort { strcoll($a->name, $b->name) } @bodies;
$c->stash->{bodies} = \@bodies;
}