Bugzilla – Attachment 194782 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: (follow-up) Only show empty state when patron is not on any list
Bug-42014-follow-up-Only-show-empty-state-when-pat.patch (text/plain), 1.34 KB, created by
Owen Leonard
on 2026-03-06 16:29:25 UTC
(
hide
)
Description:
Bug 42014: (follow-up) Only show empty state when patron is not on any list
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-03-06 16:29:25 UTC
Size:
1.34 KB
patch
obsolete
>From eae90cb9e287181fe4c3267ce2bb11bf020abc85 Mon Sep 17 00:00:00 2001 >From: Paul Derscheid <paul.derscheid@lmscloud.de> >Date: Fri, 6 Mar 2026 17:20:02 +0100 >Subject: [PATCH] Bug 42014: (follow-up) Only show empty state when patron is > not on any list > >- The empty state message was shown when available_lists was empty > but the patron was already on all existing lists >- Add !in_lists guard so the message only displays when the patron > is truly not on any list > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../prog/en/modules/patron_lists/patron-lists-tab.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >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 c91d38bcbab..624bb9e37c4 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,7 +119,7 @@ > </select> > <a onclick="addToList()"><i class="fa fa-plus"></i></a> > </div> >-[% ELSIF CAN_user_tools_manage_patron_lists %] >+[% ELSIF !in_lists && 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> >-- >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