From a61eb1a8dd591174a465579c3da7f5cb5671dbfe Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 11 Feb 2025 11:15:16 -0300 Subject: [PATCH] Bug 39092: (follow-up) Do not look for plugins if Standard backend used If we've been asked the `Standard` backend we shouldn't be trying to load plugins. Trivial refactoring of the order things are done. Signed-off-by: David Nind Signed-off-by: Pedro Amorim --- Koha/ILL/Request.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Koha/ILL/Request.pm b/Koha/ILL/Request.pm index 06cf48e229c..af402fb252e 100644 --- a/Koha/ILL/Request.pm +++ b/Koha/ILL/Request.pm @@ -483,8 +483,12 @@ sub load_backend { logger => Koha::ILL::Request::Logger->new }; - # Find plugin implementing the backend for the request - my $plugin = $self->get_backend_plugin($backend_name); + my $plugin; + if ( $backend_name ne 'Standard' ) { + + # Find plugin implementing the backend for the request + $plugin = $self->get_backend_plugin($backend_name); + } if ( $backend_name eq 'Standard' ) { -- 2.39.5