Bug 37807: Disable "Export today's checked in barcodes" when needed

If patron has privacy==2 ("Never: Delete my history immediately"), the "Export today's checked in barcodes" button is supposed to be disabled, with a tooltip with an explanation, but it is not.

Test plan:
Turn on OpacPrivacy and select "Never" in your privacy settings (OPAC)
Go to the circulation page for this patron (staff) and notice that the
export button (under "More") is disabled and has a tooltip when the
mouse hover it.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2024-09-02 14:38:59 +02:00 committed by Martin Renvoize
parent 569366e447
commit 25c7e7ff09
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@
[% END %]
[% END %]
[% IF Koha.Preference('intranetreadinghistory') %]
[% IF ( privacy == 2 ) %]
[% IF ( patron.privacy == 2 ) %]
<li data-bs-toggle="tooltip" data-bs-placement="left" title="Not allowed by patron's privacy settings">
<a class="dropdown-item disabled" aria-disabled="true" id="exportbarcodes" href="#">Export today's checked in barcodes</a>
</li>