diff options
author | Struan Donald <struan@exo.org.uk> | 2020-08-06 09:43:53 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2020-08-06 13:42:51 +0100 |
commit | 1e7cba67a53eead8cedcbf6aa7af12eb7ff4bf63 (patch) | |
tree | eecc1d98b6e78c8b7695028f5e5dc2cf6c685df2 /perllib/Open311/GetServiceRequests.pm | |
parent | ae687e6dd042982f2423d4e7e79e41c54d729e7b (diff) |
[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.
Diffstat (limited to 'perllib/Open311/GetServiceRequests.pm')
-rw-r--r-- | perllib/Open311/GetServiceRequests.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |