From 6675644fd02b12d3ac695c34c4a21bce268595b8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 24 Nov 2023 08:04:16 +0100 Subject: [PATCH] Bug 35366: (bug 33948 follow-up) Fix display of old checkouts if no checkouts exist Same patch as commit bee2b3d33ed6030b5a63d22148b9955a9897e51d Bug 33949: Fix display of old checkouts if no checkouts exist But for the staff interface. """ If we pass an empty array from the perl controller, we retrieve an empty string from the template, and the merge does not work. This patch fixes the following bug: Pick a patron without checkout history Check them an item out and check it in => The table is empty, whereas it should display the item that has been checked in. """ Signed-off-by: David Nind --- koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt index 0474968527..0f3cba6542 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt @@ -43,6 +43,8 @@ [% INCLUDE 'members-toolbar.inc' %]

Circulation history

+[% UNLESS checkouts %][% checkouts = [] %][% END %] +[% UNLESS old_checkouts %][% old_checkouts = [] %][% END %] [% SET all_checkouts = checkouts.merge(old_checkouts) %] [% UNLESS Koha.Preference('intranetreadinghistory') %]
Staff members are not allowed to access patron's checkout history
-- 2.30.2