diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-12-15 00:52:44 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-12-19 14:43:26 +0000 |
commit | 5f6226bf15630455bbe894c352b5d03faca09e81 (patch) | |
tree | f10d5a9901c4b85274864bba516195221fff9176 /perllib/FixMyStreet/App/Controller | |
parent | 776bf6d759753f1670644927dd76592c62073743 (diff) |
Be sure only dealing with the right global mapit area.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index 641aad219..9e589b1f0 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -265,7 +265,12 @@ sub bodies : Path('bodies') : Args(0) { sub body_form_dropdowns : Private { my ( $self, $c ) = @_; - my $areas = mySociety::MaPit::call('areas', $c->cobrand->area_types); + my $areas; + if ($c->cobrand->moniker eq 'zurich') { + $areas = mySociety::MaPit::call('areas', 274456); + } else { + $areas = mySociety::MaPit::call('areas', $c->cobrand->area_types); + } $c->stash->{areas} = [ sort { strcoll($a->{name}, $b->{name}) } values %$areas ]; my @methods = map { $_ =~ s/FixMyStreet::SendReport:://; $_ } keys %{ FixMyStreet::SendReport->get_senders }; |