From b39ce1ed4eb465cc3293df53ff00b4b8cf9d5a78 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 1 Aug 2025 15:55:16 +0000 Subject: [PATCH] Bug 40026: (QA follow-up): Only compare string if defined prove /kohadevbox/koha/t/db_dependent/Koha/ILL/Requests.t --- Koha/ILL/Request.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Koha/ILL/Request.pm b/Koha/ILL/Request.pm index 42a563d8b04..3816afce85a 100644 --- a/Koha/ILL/Request.pm +++ b/Koha/ILL/Request.pm @@ -1161,8 +1161,10 @@ sub expand_template { my ( $self, $params ) = @_; my $backend = $self->_backend->name; - if ( $backend eq 'Standard' - || ( $params->{method} eq 'edititem' && C4::Context->preference("AutoILLBackendPriority") ) ) + if ( + $backend eq 'Standard' + || ( $params->{method} && $params->{method} eq 'edititem' && C4::Context->preference("AutoILLBackendPriority") ) + ) { my $template_name = 'ill/backends/Standard/' . ( $params->{method} // q{} ) . '.inc'; -- 2.39.5