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 <katrin.fischer.83@web.de>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Andrew Isherwood 2018-10-15 14:46:21 +01:00 committed by Nick Clemens
parent 06415f962c
commit 5e0e8246be
2 changed files with 4 additions and 5 deletions

View File

@ -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:

View File

@ -4,6 +4,8 @@
[% USE Koha %]
[% USE KohaDates %]
[% SET footerjs = 1 %]
[% USE AuthorisedValues %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; ILL requests</title>
[% INCLUDE 'doc-head-close.inc' %]
@ -200,7 +202,7 @@
[% END %]
[% request.capabilities.$stat.name | html %]
</option>
[% FOREACH alias IN status_aliases %]
[% FOREACH alias IN AuthorisedValues.Get('ILLSTATUS') %]
[% IF alias.id == current_alias %]
<option value="[% alias.id %]" selected>
[% ELSE %]