From 25d2aa2a0a7161d27b4b98a121e5bbefb80b866d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joonas=20Kylm=C3=A4l=C3=A4?= Date: Sun, 4 Sep 2022 10:22:22 +0300 Subject: [PATCH] Bug 31518: Fix syntax error on request.tt that prevents showing hidden item count The variable set by request.pl doesn't have biblio prefix, it is just hiddencount. To test: 1) Log in with a staff member account that has "Lost items in staff interface" setting set to "Hidden by default" in the patron category settings 2) Add a lost item to biblio 3) Go place a hold on staff interface (request.pl) notice the broken link on the request page: "Show all items ( hidden)" 4) After applying the patch it should read "Show all items (1 hidden)" Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit a45b105c241ebc845b3c8585622cab53a4dc9a0d) Signed-off-by: Lucas Gass Signed-off-by: Lucas Gass (cherry picked from commit 11e4196da636ca9e859c95af6138e8a6c1193108) Signed-off-by: Arthur Suzuki --- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 5a4d823566..c9d41cae35 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -789,7 +789,7 @@ [% END # /FOREACH itemloo %] - + [% IF ( bibitemloo.hiddencount ) %]

@@ -797,6 +797,7 @@

[% END # /IF bibitemloo.hiddencount %] + [% END # /FOREACH bibitemloo %] [% ELSE # /UNLESS multi_hold %] -- 2.39.5