Skip to content

Commit

Permalink
[Open311] Store all areas with fetched reports.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos authored and neprune committed Jan 30, 2024
1 parent b366e7d commit 0a172d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion perllib/Open311/GetServiceRequests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 0a172d4

Please sign in to comment.