aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/SendReport/Open311.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-05-08 13:37:25 +0100
committerStruan Donald <struan@exo.org.uk>2012-05-08 13:37:25 +0100
commit485f739aad7371a0739b42dfb165f9f24882c107 (patch)
tree82370fa348d683aec141b2f4014f5a90e24b6f19 /perllib/FixMyStreet/SendReport/Open311.pm
parent2453b1dec215cd69926c649839e454c43e3e5469 (diff)
do no sent lat long if click no map click for bromley
Diffstat (limited to 'perllib/FixMyStreet/SendReport/Open311.pm')
-rw-r--r--perllib/FixMyStreet/SendReport/Open311.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/SendReport/Open311.pm b/perllib/FixMyStreet/SendReport/Open311.pm
index 17492624d..e572a76e5 100644
--- a/perllib/FixMyStreet/SendReport/Open311.pm
+++ b/perllib/FixMyStreet/SendReport/Open311.pm
@@ -30,6 +30,7 @@ sub send {
foreach my $council ( keys %{ $self->councils } ) {
my $conf = FixMyStreet::App->model("DB::Open311conf")->search( { area_id => $council, endpoint => { '!=', '' } } )->first;
+ my $always_send_latlong = 1;
# Extra bromley fields
if ( $row->council =~ /2482/ ) {
@@ -44,6 +45,7 @@ sub send {
push @$extra, { name => 'requested_datetime', value => DateTime::Format::W3CDTF->format_datetime($row->confirmed_local->set_nanosecond(0)) };
push @$extra, { name => 'email', value => $row->user->email };
$row->extra( $extra );
+ $always_send_latlong = 0;
}
# FIXME: we've already looked this up before
@@ -54,9 +56,10 @@ sub send {
} );
my $open311 = Open311->new(
- jurisdiction => $conf->jurisdiction,
- endpoint => $conf->endpoint,
- api_key => $conf->api_key,
+ jurisdiction => $conf->jurisdiction,
+ endpoint => $conf->endpoint,
+ api_key => $conf->api_key,
+ always_send_latlong => $always_send_latlong,
);
# non standard west berks end points