Bugzilla – Attachment 159224 Details for
Bug 35366
Circulation history of patron is only visible when there is a current checkout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35366: (bug 33948 follow-up) Fix display of old checkouts if no checkouts exist
Bug-35366-bug-33948-follow-up-Fix-display-of-old-c.patch (text/plain), 1.58 KB, created by
Jonathan Druart
on 2023-11-24 07:06:00 UTC
(
hide
)
Description:
Bug 35366: (bug 33948 follow-up) Fix display of old checkouts if no checkouts exist
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-11-24 07:06:00 UTC
Size:
1.58 KB
patch
obsolete
>From 49728c3176d50ec4ca15983763c00dd56d4a3b3d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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. >""" >--- > 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 0474968527d..0f3cba65425 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' %] > <h1>Circulation history</h1> > >+[% UNLESS checkouts %][% checkouts = [] %][% END %] >+[% UNLESS old_checkouts %][% old_checkouts = [] %][% END %] > [% SET all_checkouts = checkouts.merge(old_checkouts) %] > [% UNLESS Koha.Preference('intranetreadinghistory') %] > <div class="dialog alert">Staff members are not allowed to access patron's checkout history</div> >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35366
:
159224
|
159245
|
159257