aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Open311/GetServiceRequests.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2020-08-06 09:43:53 +0100
committerStruan Donald <struan@exo.org.uk>2020-08-06 13:42:51 +0100
commit1e7cba67a53eead8cedcbf6aa7af12eb7ff4bf63 (patch)
treeeecc1d98b6e78c8b7695028f5e5dc2cf6c685df2 /perllib/Open311/GetServiceRequests.pm
parentae687e6dd042982f2423d4e7e79e41c54d729e7b (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.pm2
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) {