Bug 41580: (QA follow-up) Fix variable name mismatch in batch delete records

- The tidy declared const record_type but the code references
  recordtype (no underscore), causing a ReferenceError
- Rename to match the existing usage

To test:
- Go to Tools → Batch delete records
- Upload/select bibliographic records with checked out items
- Verify the red cross and yellow highlight appear for
  non-deletable records

Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Paul Derscheid 2026-03-06 17:58:16 +01:00 committed by Lucas Gass
parent 745d176e2f
commit 844bebb17c
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
<script>
const record_type = "[% recordtype | html %]";
const recordtype = "[% recordtype | html %]";
</script>
<script>
var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");