From f7623fbe1cfe83dc156993af46d7eec4548b028b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 18 Nov 2024 09:38:18 +0100 Subject: [PATCH] Bug 38465: (bug 36454 follow-up) Fix curbside pickup's patron autocomplete js-date-format.inc already include those 2 JS files. If had them in curbside pickups template because it was the first using dayjs. Now it's included in js_includes.inc. Test plan: Configure curbside pickup for your library and go to circ/curbside_pickups.pl Last tab, search for a patron Without this patch you get a JS error: Uncaught TypeError: m.tz is not a function With this patch applied the patron autocomplete is fixed Signed-off-by: David Nind --- .../intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt | 2 -- 1 file changed, 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt index ac3c0d3182..89a8091d95 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt @@ -516,9 +516,7 @@ [% MACRO jsinclude BLOCK %] - [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %] [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %] - [% Asset.js("lib/dayjs/plugin/customParseFormat.js") | $raw %] [% INCLUDE 'calendar.inc' %] -- 2.39.5