diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-02-12 17:11:58 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-02-12 17:11:58 +0000 |
commit | 236f615c046dfcfadbba376b735ef7a352a79ef9 (patch) | |
tree | 5dd6c4d18e892cce26e90285c6a7f2d7eab4e9e7 /perllib/FixMyStreet/App/Controller/Report/New.pm | |
parent | 5260280b60a1192f87987c34a78fce63fc5c1d26 (diff) | |
parent | 7ec0d3f67766764967a8bb92099c582f8bd6aaf5 (diff) |
Merge branch 'banes-improvements-grab-bag'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index eff45013f..f9e07dd41 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -1398,10 +1398,11 @@ sub redirect_or_confirm_creation : Private { if ( $report->confirmed ) { # Subscribe problem reporter to email updates $c->forward( 'create_reporter_alert' ); - if ($c->stash->{contributing_as_another_user} && $report->user->email) { - $c->send_email( 'other-reported.txt', { - to => [ [ $report->user->email, $report->name ] ], - } ); + if ($c->stash->{contributing_as_another_user} && $report->user->email + && !$c->cobrand->report_sent_confirmation_email) { + $c->send_email( 'other-reported.txt', { + to => [ [ $report->user->email, $report->name ] ], + } ); } # If the user has shortlist permission, and either we're not on a # council cobrand or the just-created problem is owned by the cobrand |