diff options
author | Struan Donald <struan@exo.org.uk> | 2012-02-27 19:03:25 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-02-27 19:03:25 +0000 |
commit | 65066d275557e16448aa99ecdfa4df62d4d79649 (patch) | |
tree | c836ad08ac5fc88f2b6339bad56c7274b931b0e8 /perllib/FixMyStreet/SendReport/Email.pm | |
parent | 21b82d30b9348c3de50f711d8b7c80bcdaf2c756 (diff) |
more tests for email sending
Diffstat (limited to 'perllib/FixMyStreet/SendReport/Email.pm')
-rw-r--r-- | perllib/FixMyStreet/SendReport/Email.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/SendReport/Email.pm b/perllib/FixMyStreet/SendReport/Email.pm index c231a6b61..f2ef1bfee 100644 --- a/perllib/FixMyStreet/SendReport/Email.pm +++ b/perllib/FixMyStreet/SendReport/Email.pm @@ -46,11 +46,11 @@ sub send { my @recips; + @recips = $self->build_recipient_list( $row, $areas_info ); + # on a staging server send emails to ourselves rather than the councils if (mySociety::Config::get('STAGING_SITE')) { @recips = ( mySociety::Config::get('CONTACT_EMAIL') ); - } else { - @recips = $self->build_recipient_list( $row, $areas_info ); } return unless @recips; |