aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/Bromley.pm9
-rw-r--r--perllib/FixMyStreet/SendReport/Open311.pm1
2 files changed, 9 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm
index f6a7be837..2ae498b38 100644
--- a/perllib/FixMyStreet/Cobrand/Bromley.pm
+++ b/perllib/FixMyStreet/Cobrand/Bromley.pm
@@ -223,7 +223,6 @@ sub open311_config {
sub open311_config_updates {
my ($self, $params) = @_;
- $params->{use_extended_updates} = 1;
$params->{endpoints} = {
service_request_updates => 'update.xml',
update => 'update.xml'
@@ -240,6 +239,14 @@ sub open311_pre_send {
}
}
+sub open311_munge_update_params {
+ my ($self, $params, $comment, $body) = @_;
+ delete $params->{update_id};
+ $params->{public_anonymity_required} = $comment->anonymous ? 'TRUE' : 'FALSE',
+ $params->{update_id_ext} = $comment->id;
+ $params->{service_request_id_ext} = $comment->problem->id;
+}
+
sub open311_contact_meta_override {
my ($self, $service, $contact, $meta) = @_;
diff --git a/perllib/FixMyStreet/SendReport/Open311.pm b/perllib/FixMyStreet/SendReport/Open311.pm
index ed71d153b..a661ff206 100644
--- a/perllib/FixMyStreet/SendReport/Open311.pm
+++ b/perllib/FixMyStreet/SendReport/Open311.pm
@@ -29,6 +29,7 @@ sub send {
use_service_as_deviceid => 0,
extended_description => 1,
multi_photos => 0,
+ fixmystreet_body => $body,
);
my $cobrand = $body->get_cobrand_handler || $row->get_cobrand_logged;