From 6252eb4da1282e8eb0f7869bc4f3b19951d0c3b0 Mon Sep 17 00:00:00 2001 From: Dave Arter Date: Tue, 15 Oct 2024 10:45:51 +0100 Subject: [PATCH] [Confirm] Allow ignoring of enquiries in certain status Fetched Enquiries will be skipped if their status maps to IGNORE in reverse_status_mapping. Matches behaviour of update fetching in 42f75f6b. --- perllib/Open311/Endpoint/Integration/Confirm.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/perllib/Open311/Endpoint/Integration/Confirm.pm b/perllib/Open311/Endpoint/Integration/Confirm.pm index 83fca8e4a..78beaf522 100644 --- a/perllib/Open311/Endpoint/Integration/Confirm.pm +++ b/perllib/Open311/Endpoint/Integration/Confirm.pm @@ -825,6 +825,7 @@ sub get_service_requests { my $code = $enquiry->{ServiceCode} . "_" . $enquiry->{SubjectCode}; my $service = $services{$code}; my $status = $self->reverse_status_mapping->{$enquiry->{EnquiryStatusCode}}; + next if $status && $status eq 'IGNORE'; unless ($service || ($service = $self->_find_wrapping_service($code, \@services))) { $self->logger->warn("no service for service code $code");