Bug 36868: (follow-up) fix failing tt_kohaTable_tidy.t test

Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Lucas Gass 2026-09-11 20:55:21 +00:00 committed by Pedro Amorim
parent d1b39adfc5
commit 3405bb206f
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
2 changed files with 11 additions and 6 deletions

View File

@ -1622,6 +1622,15 @@
</script>
[% Asset.js("js/holds.js") | $raw %]
[% Asset.js("js/hold-group.js") | $raw %]
<script nonce="[% Koha.CSPNonce | $raw %]">
$(document).ready( function() {
[% IF successful_biblionumbers && Koha.Preference('AutoDeleteFromCartWhenHoldPlaced').grep('staff').size %]
[% FOREACH success IN successful_biblionumbers.split('\|') %]
delSingleRecord('[% success | html %]');
[% END %]
[% END %]
});
</script>
<script nonce="[% Koha.CSPNonce | $raw %]">
$(document).ready(function () {
$("#patron_holds_table").kohaTable(
@ -2039,12 +2048,6 @@
if (!localStorage.selectedHolds || document.referrer.replace(/\?.*/, "") !== document.location.origin + document.location.pathname) {
localStorage.selectedHolds = [];
}
[% IF successful_biblionumbers && Koha.Preference('AutoDeleteFromCartWhenHoldPlaced').grep('staff').size %]
[% FOREACH success IN successful_biblionumbers.split('\|') %]
delSingleRecord('[% success | html %]');
[% END %]
[% END %]
});
</script>
[% UNLESS patron %]

View File

@ -1097,6 +1097,8 @@
delSingleRecord('[% success | html %]');
[% END %]
[% END %]
</script>
<script nonce="[% Koha.CSPNonce | $raw %]">
var AR_CAPTION_COUNT = _("(%s total)");
function tableInit(tableId) {