Bug 42915: (follow-up) Fix holds table display on patron record holds tab

To test:
1. Have a patron with multiple holds
2. Go to the patron record's hold tab
3. Confirm the table loads and no errors are logged to the console

Sponsored-by: CLAMS
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Brendan Lawlor 2026-07-10 15:29:42 +00:00 committed by Lucas Gass
parent f3f6ba601a
commit 01362891d2
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,6 @@
<!-- patron-detail-tabs.inc -->
[% USE raw %]
[% USE To %]
[% PROCESS 'html_helpers.inc' %]
[% PROCESS 'modals/holds_table_modals.inc' %]
[% WRAPPER tabs id= "finesholdsissues" %]
@ -265,3 +266,10 @@
[% END # /WRAPPER tab_panels %]
[% END # /WRAPPER tabs %]
<!-- /patron-detail-tabs.inc -->
<script nonce="[% Koha.CSPNonce | $raw %]">
let all_libraries = [% To.json(Branches.all) | $raw %].map(e => {
e['_id'] = e.branchcode;
e['_str'] = e.branchname;
return e;
});
</script>