aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-11-14 13:26:54 +0000
committerDave Arter <davea@mysociety.org>2019-12-09 12:50:07 +0000
commita19b5ed0ad1d77ae3cd263f3c297a5bd755bfcc3 (patch)
treecd2c0f283e63df9259017b7e7dc8d9fb62ccd4ca
parent5ffe5b967e91d0660e10c762b31bef678fe5acc6 (diff)
[TfL] Updates are sent to the body.
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm2
-rw-r--r--templates/email/tfl/update-confirm-donotsend.txt2
-rw-r--r--templates/web/tfl/report/updates-sidebar-notes.html4
3 files changed, 8 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index 4b52cd11d..28703c416 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -911,6 +911,8 @@ bodies by some mechanism. Right now that mechanism is Open311.
sub updates_sent_to_body {
my $self = shift;
+
+ return 1 if $self->to_body_named('TfL');
return unless $self->send_method_used && $self->send_method_used =~ /Open311/;
# Some bodies only send updates *to* FMS, they don't receive updates.
diff --git a/templates/email/tfl/update-confirm-donotsend.txt b/templates/email/tfl/update-confirm-donotsend.txt
new file mode 100644
index 000000000..87ec67328
--- /dev/null
+++ b/templates/email/tfl/update-confirm-donotsend.txt
@@ -0,0 +1,2 @@
+This update will be sent to Transport for London and will
+also be displayed on the [% site_name %] website.
diff --git a/templates/web/tfl/report/updates-sidebar-notes.html b/templates/web/tfl/report/updates-sidebar-notes.html
new file mode 100644
index 000000000..a4b456501
--- /dev/null
+++ b/templates/web/tfl/report/updates-sidebar-notes.html
@@ -0,0 +1,4 @@
+<p>
+ Please note that updates are sent to Transport for London.
+ [% tprintf( loc( 'Your information will only be used in accordance with our <a href="%s">privacy policy</a>' ), c.cobrand.privacy_policy_url ) %]
+</p>