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:
parent
c02c8db51e
commit
ded7e528d5
|
|
@ -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 %]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue