aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-12-18 11:06:07 +0000
committerDave Arter <davea@mysociety.org>2019-12-18 11:43:30 +0000
commit18afa312583819b208af1340dee9573ceae7cbd1 (patch)
treee4b1e420aa5abae95569bdf04ee285d39ba5ec24
parent77efaeb3ddac466c6e97942228aa5d3e144ba332 (diff)
[Buckinghamshire] Remove ‘not responsible’ message from emails for district reports
Fixes https://github.com/mysociety/fixmystreet-freshdesk/issues/104
-rw-r--r--t/cobrand/bucks.t2
-rw-r--r--templates/email/buckinghamshire/other-reported.html5
-rw-r--r--templates/email/buckinghamshire/other-reported.txt5
3 files changed, 3 insertions, 9 deletions
diff --git a/t/cobrand/bucks.t b/t/cobrand/bucks.t
index 49900114c..c231a5388 100644
--- a/t/cobrand/bucks.t
+++ b/t/cobrand/bucks.t
@@ -94,7 +94,7 @@ subtest 'flytipping off road sent to extra email' => sub {
FixMyStreet::Script::Reports::send();
my @email = $mech->get_email;
is $email[0]->header('To'), 'Chiltern <flytipping@chiltern>';
- like $mech->get_text_body_from_email($email[1]), qr/Please note that Buckinghamshire County Council is not responsible/;
+ unlike $mech->get_text_body_from_email($email[1]), qr/Please note that Buckinghamshire County Council is not responsible/;
$report->discard_changes;
is $report->external_id, undef, 'Report has right external ID';
};
diff --git a/templates/email/buckinghamshire/other-reported.html b/templates/email/buckinghamshire/other-reported.html
index 07a36b6f3..4108f83b0 100644
--- a/templates/email/buckinghamshire/other-reported.html
+++ b/templates/email/buckinghamshire/other-reported.html
@@ -12,10 +12,7 @@ INCLUDE '_email_top.html';
[% start_padded_box | safe %]
<h1 style="[% h1_style %]">Your report has been&nbsp;logged</h1>
<p style="[% p_style %]">Your report to [% report.body %] has been logged on [% site_name %].</p>
-[% IF cobrand.is_council && !cobrand.owns_problem( report ) %]
-<p style="[% p_style %]">Please note that [% cobrand.council_name %] is not responsible for this type
-of report, so it will instead be sent to [% report.body %].</p>
-[% ELSE %]
+[% IF cobrand.owns_problem( report ) %]
[% TRY %][% INCLUDE '_council_reference.html' problem=report %][% CATCH file %][% END %]
[% END %]
<p style="margin: 20px auto; text-align: center">
diff --git a/templates/email/buckinghamshire/other-reported.txt b/templates/email/buckinghamshire/other-reported.txt
index 7f78617e0..1a042a60a 100644
--- a/templates/email/buckinghamshire/other-reported.txt
+++ b/templates/email/buckinghamshire/other-reported.txt
@@ -4,10 +4,7 @@ Hello [% report.name %],
Your report to [% report.body %] has been logged on [% site_name %].
-[% IF cobrand.is_council && !cobrand.owns_problem( report ) %]
-Please note that [% cobrand.council_name %] is not responsible for this type
-of report, so it will instead be sent to [% report.body %].
-[% ELSE %]
+[% IF cobrand.owns_problem( report ) %]
[% TRY %][% INCLUDE '_council_reference.txt' problem=report %][% CATCH file %][% END %]
[% END %]