Bug 36581: Define ymd in scope for checkouts table

Test plan:
1. Find or create an item with a public or nonpublic note
   (in KTD default data, items on biblionumber 12 have notes already)
2. Check the item out to a patron
--> Checkouts table loading never completes
--> Browser console shows: "Uncaught ReferenceError: ymd is not defined"
3. Apply patch and clear browser cache
4. Refresh the page
--> Checkout table loads and console error is gone

Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Emily Lamancusa 2024-04-11 11:01:11 -04:00 committed by Katrin Fischer
parent b6a662848b
commit d4bbf76eec
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -91,6 +91,7 @@ function LoadIssuesTable() {
+ oObj.biblionumber
+ "'>"
+ (oObj.title ? oObj.title.escapeHtml() : '' );
var ymd = flatpickr.formatDate(new Date(), "Y-m-d");
$.each(oObj.subtitle, function( index, value ) {
title += " " + value.escapeHtml();