aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2014-01-30 17:31:13 +0000
committerMatthew Somerville <matthew@mysociety.org>2014-01-30 17:31:13 +0000
commit7a738ee01f5ee2b58c32b7299e53b84ebd8eca82 (patch)
treea5e203079a2be2e90675c4aa4f18a5d1cc087c18
parentcb1285f1f46fbee8f76d06a4097952268de12a0a (diff)
Send staging reports to reporter, not contact address.
Fixes #653.
-rw-r--r--perllib/FixMyStreet/SendReport/Email.pm2
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 ) {