aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2018-01-25 11:27:29 +0000
committerDave Arter <davea@mysociety.org>2018-04-03 12:44:23 +0100
commitdcad89fa785b45993bd99c37839c9603ce5add0f (patch)
treed02f34e369b71ad4b72eb64ba4f73fd0ae890e15
parente277f9bc21c405516051edf5c968feeac4220c41 (diff)
[Buckinghamshire] Send report_url attribute with Open311 service requests
-rw-r--r--perllib/FixMyStreet/Cobrand/Buckinghamshire.pm12
-rw-r--r--perllib/Open311/PopulateServiceList.pm2
2 files changed, 13 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm b/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm
index be090ce17..3c67f69c0 100644
--- a/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm
+++ b/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm
@@ -45,4 +45,16 @@ sub send_questionnaires {
return 0;
}
+sub open311_config {
+ my ($self, $row, $h, $params) = @_;
+
+ my $extra = $row->get_extra_fields;
+ push @$extra,
+ { name => 'report_url',
+ value => $h->{url} };
+
+ $row->set_extra_fields(@$extra);
+}
+
+
1;
diff --git a/perllib/Open311/PopulateServiceList.pm b/perllib/Open311/PopulateServiceList.pm
index 30d888eb4..813c27cff 100644
--- a/perllib/Open311/PopulateServiceList.pm
+++ b/perllib/Open311/PopulateServiceList.pm
@@ -256,7 +256,7 @@ sub _add_meta_to_contact {
public_anonymity_required
email_alerts_requested
) ],
- #2243,
+ #2243,
'Warwickshire County Council' => [qw(
closest_address
) ],