aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--t/app/controller/report_new.t7
-rw-r--r--templates/email/default/problem-confirm.txt4
2 files changed, 10 insertions, 1 deletions
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t
index 94d34a93d..9b10de2bf 100644
--- a/t/app/controller/report_new.t
+++ b/t/app/controller/report_new.t
@@ -1320,6 +1320,13 @@ subtest "test Hart" => sub {
ok $email, "got an email";
like $email->body, qr/to confirm that you want to send your/i, "confirm the problem";
+ # does it reference the fact that this report hasn't been sent to Hart?
+ if ( $test->{national} ) {
+ like $email->body, qr/Hart Council is not responsible for this type/i, "mentions report hasn't gone to Hart";
+ } else {
+ unlike $email->body, qr/Hart Council is not responsible for this type/i, "doesn't mention report hasn't gone to Hart";
+ }
+
my ($url) = $email->body =~ m{(http://\S+)};
ok $url, "extracted confirm url '$url'";
diff --git a/templates/email/default/problem-confirm.txt b/templates/email/default/problem-confirm.txt
index ab4870bb1..06062c1d3 100644
--- a/templates/email/default/problem-confirm.txt
+++ b/templates/email/default/problem-confirm.txt
@@ -10,7 +10,9 @@ website:
If your email program does not let you click on this link, copy and paste it
into your web browser and press return.
-
+[% IF c.cobrand.is_council && !c.cobrand.owns_problem( report ) %]
+Note that [% c.cobrand.council_name %] is not responsible for this type of problem.
+[% END %]
Your problem had the title:
[% report.title %]