Bug 20581: (follow-up) Fix AV population
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Mon, 15 Oct 2018 13:46:21 +0000 (14:46 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 22 Feb 2019 14:31:31 +0000 (14:31 +0000)
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>

ill/ill-requests.pl
koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt

index e84ccab..bf95105 100755 (executable)
@@ -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:
index a301664..9540f7c 100644 (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' %]
                                         [% 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 %]