From 1e7cba67a53eead8cedcbf6aa7af12eb7ff4bf63 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Thu, 6 Aug 2020 09:43:53 +0100 Subject: [Open311] use staff categories when fetching reports At the moment if you fetch a report in a staff category it will still be created but will be in the Other category. Given that some staff categories are marked as private this can allow reports that should be private to be put in a public category. --- perllib/Open311/GetServiceRequests.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perllib/Open311/GetServiceRequests.pm') diff --git a/perllib/Open311/GetServiceRequests.pm b/perllib/Open311/GetServiceRequests.pm index 2545f6f29..eea7c0f26 100644 --- a/perllib/Open311/GetServiceRequests.pm +++ b/perllib/Open311/GetServiceRequests.pm @@ -81,7 +81,7 @@ sub create_problems { } my $contacts = $self->schema->resultset('Contact') - ->active + ->not_deleted_admin ->search( { body_id => $body->id } ); for my $request (@$requests) { -- cgit v1.2.3