Bugzilla – Attachment 194781 Details for
Bug 42014
Patron lists tab shows blank content when no patron lists exist
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 42014: Show empty state message on patron lists tab
Bug-42014-Show-empty-state-message-on-patron-lists.patch (text/plain), 1.80 KB, created by
Owen Leonard
on 2026-03-06 16:29:22 UTC
(
hide
)
Description:
Bug 42014: Show empty state message on patron lists tab
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-03-06 16:29:22 UTC
Size:
1.80 KB
patch
obsolete
>From 00e86c1acb5740b6d80544009bce28237883fe52 Mon Sep 17 00:00:00 2001 >From: Paul Derscheid <paul.derscheid@lmscloud.de> >Date: Fri, 6 Mar 2026 16:12:57 +0100 >Subject: [PATCH] Bug 42014: Show empty state message on patron lists tab > >- When no patron lists exist in the system, the patron lists > tab on the patron detail page renders completely blank >- Other tabs follow the convention of showing a message in > the empty state (e.g. "Patron has nothing on hold.") >- Add an empty state message with a link to create a new > patron list, matching the established pattern > >To test: >- Go to a patron detail page and click the "Patron lists" tab >- If no patron lists exist, observe the tab is blank >- Apply patch >- Repeat the above steps >- Verify the tab now shows "Patron is not on any list." with > a link to create a new patron list >- Click the link and create a patron list >- Return to the patron detail page and verify the "Add patron > to list" dropdown now appears instead > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../prog/en/modules/patron_lists/patron-lists-tab.tt | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/patron-lists-tab.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/patron-lists-tab.tt >index 38dac966f47..c91d38bcbab 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/patron-lists-tab.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/patron-lists-tab.tt >@@ -119,6 +119,8 @@ > </select> > <a onclick="addToList()"><i class="fa fa-plus"></i></a> > </div> >+[% ELSIF CAN_user_tools_manage_patron_lists %] >+ <p>Patron is not on any list. <a href="/cgi-bin/koha/patron_lists/add-modify.pl">Create a new patron list</a>.</p> > [% END %] > <script> > var patron_lists_dt_params = { >-- >2.39.5
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 42014
:
194739
|
194771
| 194781 |
194782