diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-01-16 17:20:58 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-01-16 17:20:58 +0000 |
commit | b570f6531bb33141add046ce68e3c25491ebad60 (patch) | |
tree | 51c2a3a833784958520a16a36680c3d26ed10529 /perllib/FixMyStreet/DB/ResultSet/Problem.pm | |
parent | 3b75b2612eb9b2904049814ae6c2c69fd65a60fa (diff) |
Split the 'send reports' bit of STAGING_SITE to its own config variable, so you can have a dev site that sends reports like normal.
Diffstat (limited to 'perllib/FixMyStreet/DB/ResultSet/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/Problem.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm index 897a7e732..8bf0fc93a 100644 --- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm +++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm @@ -360,7 +360,7 @@ sub send_reports { next unless $sender_count; - if (mySociety::Config::get('STAGING_SITE')) { + if (mySociety::Config::get('STAGING_SITE') && !mySociety::Config::get('SEND_REPORTS_ON_STAGING')) { # on a staging server send emails to ourselves rather than the bodies my @testing_bodies = split( '\|', mySociety::Config::get('TESTING_COUNCILS') ); unless ( grep { $row->bodies_str eq $_ } @testing_bodies ) { |