From 935f431ee0da77dd26a78b959d3b9afb89665c0f Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Wed, 20 Dec 2017 15:58:51 +0000 Subject: fetch new problems over open311 This enables the display of existing reports from the back end on FMS if the body is configured to do this. Reports will not be created if they are missing an id, a lat or a long, if the lat/long is outside the area covered by the body, if there is already a report with a matching id, or if we can't parse out the request time. --- perllib/FixMyStreet/App/Controller/Admin.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm') diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index 5e69d5bf3..27792cd9d 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -445,6 +445,7 @@ sub body_params : Private { my %defaults = map { $_ => '' } @fields; %defaults = ( %defaults, send_comments => 0, + fetch_problems => 0, suppress_alerts => 0, comment_user_id => undef, send_extended_statuses => 0, -- cgit v1.2.3 From 8c23490f465fad0089d77ee362c566d066798d09 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Thu, 1 Mar 2018 12:31:48 +0000 Subject: permit blank updates to be fetched over Open311 Add a per body configuration option to allow Open311 updates to contain only a status change, rather than emitting a warning when this happens. --- perllib/FixMyStreet/App/Controller/Admin.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm') diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index 27792cd9d..c12fdf9b9 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -446,6 +446,7 @@ sub body_params : Private { %defaults = ( %defaults, send_comments => 0, fetch_problems => 0, + blank_updates_permitted => 0, suppress_alerts => 0, comment_user_id => undef, send_extended_statuses => 0, -- cgit v1.2.3