From d4bbf76eecad37a5930d2dacdbe0c6a1e6820570 Mon Sep 17 00:00:00 2001 From: Emily Lamancusa Date: Thu, 11 Apr 2024 11:01:11 -0400 Subject: [PATCH] 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 Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index 57a9d96c70..c5b474e027 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -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(); -- 2.39.5