@@ -, +, @@ --- Koha/REST/V1/Illrequests.pm | 2 +- ill/ill-requests.pl | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) --- a/Koha/REST/V1/Illrequests.pm +++ a/Koha/REST/V1/Illrequests.pm @@ -57,7 +57,7 @@ sub list { # Get all requests # If necessary, only get those from a specified patron my @requests = Koha::Illrequests->search({ - args->{borrowernumber} + $args->{borrowernumber} ? ( borrowernumber => $args->{borrowernumber} ) : () })->as_list; --- a/ill/ill-requests.pl +++ a/ill/ill-requests.pl @@ -280,8 +280,8 @@ if ( $backends_available ) { uri_escape_utf8(scalar $params->{$filter}); } } + my @tpl_arr = (); if (keys %{$active_filters}) { - my @tpl_arr; foreach my $key (keys %{$active_filters}) { push @tpl_arr, $key . "=" . $active_filters->{$key}; } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -527,7 +527,7 @@ [% INCLUDE 'calendar.inc' %] [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] --