From da403611419ce94b1708c3bc24086e6eea18369a Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 20 Jan 2025 16:07:40 +0000 Subject: [PATCH] Bug 38441: (QA follow-up): Fix query Only add query fields if they're defined. --- Koha/ILL/Request/Workflow/HistoryCheck.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/ILL/Request/Workflow/HistoryCheck.pm b/Koha/ILL/Request/Workflow/HistoryCheck.pm index 421fd01f184..f7f36405d7a 100644 --- a/Koha/ILL/Request/Workflow/HistoryCheck.pm +++ b/Koha/ILL/Request/Workflow/HistoryCheck.pm @@ -248,7 +248,7 @@ sub _find_matching_requests { push @query, { 'illrequestattributes.type' => $id_field, 'illrequestattributes.value' => $self->{metadata}->{$id_field}, - }; + } if $self->{metadata}->{$id_field}; } my $matching_requests = Koha::ILL::Requests->search( -- 2.39.5