aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/SendReport
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-13 12:36:08 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-13 12:36:08 +0000
commita371400b11a41497737500969a1a6d1dffc45cef (patch)
treed65850e194c44c46b9fb1d5ec46ac67d3453df5a /perllib/FixMyStreet/SendReport
parentbe76b91a31a445f87466693968fe7bba3d0abe04 (diff)
Couple of fixes to enable EmptyHomes to send reports again.
Diffstat (limited to 'perllib/FixMyStreet/SendReport')
-rw-r--r--perllib/FixMyStreet/SendReport/EmptyHomes.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/SendReport/EmptyHomes.pm b/perllib/FixMyStreet/SendReport/EmptyHomes.pm
index b116ee206..4bae6af46 100644
--- a/perllib/FixMyStreet/SendReport/EmptyHomes.pm
+++ b/perllib/FixMyStreet/SendReport/EmptyHomes.pm
@@ -33,7 +33,7 @@ sub build_recipient_list {
push @{ $self->to }, [ $body_email, $body->name ];
$recips{$body_email} = 1;
- my $area_info = mySociety::MaPit::call('area', $body->area_id);
+ my $area_info = mySociety::MaPit::call('area', $body->body_areas->first->area_id);
my $country = $area_info->{country};
if ($country eq 'W') {
$recips{ 'wales@' . mySociety::Config::get('EMAIL_DOMAIN') } = 1;