From 4e516da529e5cc856185d1eb175ac846e9822cb8 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. Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- 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 540a3efe46..4f50a425df 100644 --- a/Koha/Illrequest.pm +++ b/Koha/Illrequest.pm @@ -722,9 +722,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 0933b1a7c5..c27fe0e1a4 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.length > 0 %] [% PROCESS $whole.template %] + [% END %] [% req_status = request.status %] [% IF error %] -- 2.39.5