From 0a172d4503c46555c69150551593e52a5fcba87b Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 26 Jan 2024 14:05:16 +0000 Subject: [PATCH] [Open311] Store all areas with fetched reports. --- perllib/Open311/GetServiceRequests.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perllib/Open311/GetServiceRequests.pm b/perllib/Open311/GetServiceRequests.pm index 034138ce14b..b3085ef915c 100644 --- a/perllib/Open311/GetServiceRequests.pm +++ b/perllib/Open311/GetServiceRequests.pm @@ -171,6 +171,7 @@ sub create_problems { my $title = $request->{title} || $cobrand && $cobrand->call_hook('open311_title_fetched_report', $request) || $request->{service_name} . ' problem'; my $detail = $request->{description} || $title; + my $areas = ',' . join( ',', sort keys %$all_areas ) . ','; my $params = { user => $self->system_user, external_id => $request_id, @@ -188,7 +189,7 @@ sub create_problems { used_map => 1, latitude => $latitude, longitude => $longitude, - areas => ',' . $body->id . ',', + areas => $areas, bodies_str => $body->id, send_method_used => 'Open311', category => $contact,