diff options
author | Matthew Somerville <matthew@mysociety.org> | 2014-01-30 17:31:13 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-01-30 17:31:13 +0000 |
commit | 7a738ee01f5ee2b58c32b7299e53b84ebd8eca82 (patch) | |
tree | a5e203079a2be2e90675c4aa4f18a5d1cc087c18 /perllib/FixMyStreet | |
parent | cb1285f1f46fbee8f76d06a4097952268de12a0a (diff) |
Send staging reports to reporter, not contact address.
Fixes #653.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/SendReport/Email.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/SendReport/Email.pm b/perllib/FixMyStreet/SendReport/Email.pm index 21f8f7ca0..e8151f175 100644 --- a/perllib/FixMyStreet/SendReport/Email.pm +++ b/perllib/FixMyStreet/SendReport/Email.pm @@ -84,7 +84,7 @@ sub send { # on a staging server send emails to ourselves rather than the bodies if (mySociety::Config::get('STAGING_SITE') && !mySociety::Config::get('SEND_REPORTS_ON_STAGING') && !FixMyStreet->test_mode) { - @recips = ( mySociety::Config::get('CONTACT_EMAIL') ); + @recips = ( $row->user->email ); } unless ( @recips ) { |