diff options
author | Struan Donald <struan@exo.org.uk> | 2012-08-29 17:43:22 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-08-29 17:43:22 +0100 |
commit | 0fad1a7b85ac83dce778b7dd22cd9d74f524ce23 (patch) | |
tree | b74e71b18b6cd8d267b29b264f8af89e801b9ca9 /perllib/FixMyStreet/SendReport/Email.pm | |
parent | 716c333de51d06e289f0dd798ec675b6466e336a (diff) |
allow endpoints to be configured at a category level
default cobrand now checks for endpoint configuration and only
extra fallbacks are in UK cobrand
Diffstat (limited to 'perllib/FixMyStreet/SendReport/Email.pm')
-rw-r--r-- | perllib/FixMyStreet/SendReport/Email.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/SendReport/Email.pm b/perllib/FixMyStreet/SendReport/Email.pm index 654ed6b3a..11ca196fb 100644 --- a/perllib/FixMyStreet/SendReport/Email.pm +++ b/perllib/FixMyStreet/SendReport/Email.pm @@ -12,6 +12,7 @@ sub build_recipient_list { my $all_confirmed = 1; foreach my $council ( keys %{ $self->councils } ) { + my $contact = FixMyStreet::App->model("DB::Contact")->find( { deleted => 0, area_id => $council, @@ -32,7 +33,7 @@ sub build_recipient_list { $self->unconfirmed_notes->{$council_email}{$row->category} = $note; } - push @{ $self->to }, [ $council_email, $self->councils->{ $council }->{name} ]; + push @{ $self->to }, [ $council_email, $self->councils->{ $council }->{info}->{name} ]; $recips{$council_email} = 1; } |