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>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
(cherry picked from commit 53a8761a42)
Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
This commit is contained in:
Paul Derscheid 2026-03-06 17:20:02 +01:00 committed by Baptiste Wojtkowski
parent c02c8db51e
commit ded7e528d5
No known key found for this signature in database
GPG Key ID: 47A8A13E10BC0D40
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@
</select>
<a onclick="addToList()"><i class="fa fa-plus"></i>
</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 %]