aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mytton <self@hecticjeff.net>2013-09-11 16:45:37 +0100
committerChris Mytton <self@hecticjeff.net>2013-09-11 16:45:37 +0100
commite0dc46b4b86bdd1e52753f63d6ae4a60c52b49ff (patch)
treecfbd2cd6bc6d55fa56d86582f8dc8637ac88c04f
parent7fffbf2e562d9ede840c09f70e5495ac79890e4b (diff)
[Zurich] Don't send problem rejected email unless requested
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index d39c804ad..8e8b79d07 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -396,7 +396,7 @@ sub admin_report_edit {
$redirect = 1;
} else {
$problem->state( $c->req->params->{state} ) if $c->req->params->{state};
- if ( $problem->state eq 'hidden' ) {
+ if ( $problem->state eq 'hidden' && $c->req->params->{send_rejected_email} ) {
_admin_send_email( $c, 'problem-rejected.txt', $problem );
}
}