From 16b42aeab07f97b59a200f26203e9f7d829b5ef7 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Tue, 31 Aug 2021 10:06:03 +0100 Subject: [PATCH] Bug 28909: Fix handling if backend doesn't support If a backend hasn't been updated to support this functionality, we need to handle that gracefully Also, this commit fixes some indentation. --- Koha/Illrequest.pm | 6 +++--- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Koha/Illrequest.pm b/Koha/Illrequest.pm index 4324c709ca..1fff9bb88f 100644 --- a/Koha/Illrequest.pm +++ b/Koha/Illrequest.pm @@ -720,9 +720,9 @@ sub backend_illview { my ( $self, $params ) = @_; my $response = $self->_backend_capability('illview',{ - request => $self, - other => $params, - }); + request => $self, + other => $params, + }); return $self->expandTemplate($response) if $response; return $response; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index c2343844aa..f4c0df3275 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -484,7 +484,9 @@ [% ELSIF query_type == 'illview' %] + [% IF $whole.template %] [% PROCESS $whole.template %] + [% END %] [% req_status = request.status %] [% IF error %] -- 2.20.1