Bugzilla – Attachment 164775 Details for
Bug 36581
Checkouts table on patron account won't load if any of the items have item notes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36581: Define ymd in scope for checkouts table
Bug-36581-Define-ymd-in-scope-for-checkouts-table.patch (text/plain), 1.49 KB, created by
Nick Clemens (kidclamp)
on 2024-04-11 15:54:41 UTC
(
hide
)
Description:
Bug 36581: Define ymd in scope for checkouts table
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-04-11 15:54:41 UTC
Size:
1.49 KB
patch
obsolete
>From 6d1a1d2461399f6e6a37c69f0dff7146df36a1fb Mon Sep 17 00:00:00 2001 >From: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> >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 <emily.lamancusa@montgomerycountymd.gov> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > 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 57a9d96c707..c5b474e027a 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.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36581
:
164760
|
164761
| 164775