aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/CheshireEast.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/CheshireEast.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/CheshireEast.pm37
1 files changed, 4 insertions, 33 deletions
diff --git a/perllib/FixMyStreet/Cobrand/CheshireEast.pm b/perllib/FixMyStreet/Cobrand/CheshireEast.pm
index c5e5107f3..2a0423b7c 100644
--- a/perllib/FixMyStreet/Cobrand/CheshireEast.pm
+++ b/perllib/FixMyStreet/Cobrand/CheshireEast.pm
@@ -5,6 +5,7 @@ use strict;
use warnings;
use Moo;
+with 'FixMyStreet::Roles::ConfirmOpen311';
with 'FixMyStreet::Roles::ConfirmValidation';
sub council_area_id { 21069 }
@@ -56,39 +57,6 @@ sub abuse_reports_only { 1 }
sub send_questionnaires { 0 }
-sub open311_config {
- my ($self, $row, $h, $params) = @_;
-
- $params->{multi_photos} = 1;
-}
-
-sub open311_extra_data {
- my ($self, $row, $h, $extra) = @_;
-
- my $open311_only = [
- { name => 'report_url',
- value => $h->{url} },
- { name => 'title',
- value => $row->title },
- { name => 'description',
- value => $row->detail },
- ];
-
- # Reports made via FMS.com or the app probably won't have a site code
- # value because we don't display the adopted highways layer on those
- # frontends. Instead we'll look up the closest asset from the WFS
- # service at the point we're sending the report over Open311.
- if (!$row->get_extra_field_value('site_code')) {
- if (my $site_code = $self->lookup_site_code($row)) {
- push @$extra,
- { name => 'site_code',
- value => $site_code };
- }
- }
-
- return $open311_only;
-}
-
# TODO These values may not be accurate
sub lookup_site_code_config { {
buffer => 200, # metres
@@ -142,4 +110,7 @@ sub council_rss_alert_options {
return ( \@options, undef );
}
+# Make sure fetched report description isn't shown.
+sub filter_report_description { "" }
+
1;