From 5e0e8246be0f6dfcfb4870231bbdcfed4de0dbfa Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Mon, 15 Oct 2018 14:46:21 +0100 Subject: [PATCH] Bug 20581: (follow-up) Fix AV population As per: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20581#c72 Signed-off-by: Katrin Fischer Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- ill/ill-requests.pl | 5 +---- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 4 +++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl index e84ccab6b4..bf951058e1 100755 --- a/ill/ill-requests.pl +++ b/ill/ill-requests.pl @@ -163,10 +163,7 @@ if ( $backends_available ) { }; $template->param( whole => $backend_result, - request => $request, - status_aliases => scalar Koha::AuthorisedValues->search( - { category => 'ILLSTATUS' } - ) + request => $request ); } else { # Commit: 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 a3016647b3..9540f7c073 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 @@ -4,6 +4,8 @@ [% USE Koha %] [% USE KohaDates %] [% SET footerjs = 1 %] +[% USE AuthorisedValues %] + [% INCLUDE 'doc-head-open.inc' %] Koha › ILL requests [% INCLUDE 'doc-head-close.inc' %] @@ -200,7 +202,7 @@ [% END %] [% request.capabilities.$stat.name | html %] - [% FOREACH alias IN status_aliases %] + [% FOREACH alias IN AuthorisedValues.Get('ILLSTATUS') %] [% IF alias.id == current_alias %]