aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/SendReport/Email.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-01-09 11:27:43 +0000
committerStruan Donald <struan@exo.org.uk>2013-01-09 11:27:43 +0000
commit8912c29b584169e787dc885534a2a94928d6723d (patch)
treefbf75c9e685634ddcb44cf72e460c0588c01dc68 /perllib/FixMyStreet/SendReport/Email.pm
parent6df6486db5ba963d2d18090d008f5d8146b30157 (diff)
fix name of seesomething cobrand report to address
Diffstat (limited to 'perllib/FixMyStreet/SendReport/Email.pm')
-rw-r--r--perllib/FixMyStreet/SendReport/Email.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/SendReport/Email.pm b/perllib/FixMyStreet/SendReport/Email.pm
index b69436dd7..f26116bc4 100644
--- a/perllib/FixMyStreet/SendReport/Email.pm
+++ b/perllib/FixMyStreet/SendReport/Email.pm
@@ -33,7 +33,13 @@ sub build_recipient_list {
$self->unconfirmed_notes->{$council_email}{$row->category} = $note;
}
- push @{ $self->to }, [ $council_email, $self->councils->{ $council }->{info}->{name} ];
+ # see something uses council areas but doesn't send to councils so just use a
+ # generic name here to minimise confusion
+ if ( $row->cobrand eq 'seesomething' ) {
+ push @{ $self->to }, [ $council_email, 'See Something, Say Something' ];
+ } else {
+ push @{ $self->to }, [ $council_email, $self->councils->{ $council }->{info}->{name} ];
+ }
$recips{$council_email} = 1;
}