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:
parent
5d9a2ec188
commit
53a8761a42
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue