diff options
author | Marius Halden <marius.h@lden.org> | 2018-05-29 19:37:34 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2018-05-29 19:37:34 +0200 |
commit | 782457d016084c8de04989dbc824a71899f8b41b (patch) | |
tree | 56d14e1a988396e43c8693ff3486e40d16962add /perllib/FixMyStreet/Cobrand/Angus.pm | |
parent | 140d40e3eab4cb1e7aa9f95cbc24a0f13180b606 (diff) | |
parent | 6e2da95bc6a758c0cf070b9ddd51acc769f7acf1 (diff) |
Merge tag 'v2.3.1' into fiksgatami-dev
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Angus.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Angus.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Angus.pm b/perllib/FixMyStreet/Cobrand/Angus.pm index 056101574..87dcc1d96 100644 --- a/perllib/FixMyStreet/Cobrand/Angus.pm +++ b/perllib/FixMyStreet/Cobrand/Angus.pm @@ -72,9 +72,7 @@ sub temp_update_contacts { my $contact_rs = $self->{c}->model('DB::Contact'); - my $body = FixMyStreet::DB->resultset('Body')->search({ - 'body_areas.area_id' => $self->council_area_id, - }, { join => 'body_areas' })->first; + my $body = FixMyStreet::DB->resultset('Body')->for_areas($self->council_area_id)->first; my $_update = sub { my ($category, $field, $category_details) = @_; |