diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-22 12:42:03 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-22 14:58:35 +0100 |
commit | b5f57d1649b7dee104e29e8c5055a09e1de06b70 (patch) | |
tree | 3479010f71b39f749b11d53dd39a9c7aabde40c1 /perllib/FixMyStreet/Cobrand/Zurich.pm | |
parent | b57df33a0714d6ee6fb897887eb20b0387321afc (diff) |
[Zurich] Fix call to admin_fetch_all_bodies.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Zurich.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Zurich.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm index 7740474ab..4098c6708 100644 --- a/perllib/FixMyStreet/Cobrand/Zurich.pm +++ b/perllib/FixMyStreet/Cobrand/Zurich.pm @@ -1096,7 +1096,7 @@ sub admin_fetch_all_bodies { my %sorted; foreach (@bodies) { - my $p = $_->{parent} || 0; + my $p = $_->{parent} ? $_->{parent}{id} : 0; push @{$sorted{$p}}, $_; } |