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>
This commit is contained in:
Paul Derscheid 2026-03-06 17:20:02 +01:00 committed by Laura Escamilla
parent 5d9a2ec188
commit 53a8761a42
No known key found for this signature in database
GPG Key ID: 6B1D9CA1AF817BC3
1 changed files with 1 additions and 1 deletions

View File

@ -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>