From b545e0388cdb07784fa35729ee1bda6b402108fc Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 12 Jul 2024 13:43:22 +0000 Subject: [PATCH] Bug 37345: Make stickyduedate stick To test: 1. Find an item to checkout and a patron to check out to. 2. Set a due manually: "Specify due date (MM/DD/YYYY):" 3. Before checking out click the "Remember for session:" checkbox. 4. Check the item out. 5. The specific due date is not retained. 6. APPLY PATCH 7. Try 1 -4 again, now the date should be sticking. 8. Turn on the OnSiteCheckouts system pref and make sure it still works 9. Turn on the OnSiteCheckoutAutoCheck system pref and make sure the on-site checkbox is still checked after doing an on-site checkout. --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index c7679844ff..c7aef24805 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -1052,7 +1052,7 @@ const duedatespec = document.querySelector("#duedatespec"); if( duedatespec ){ const duedatespec_fp = duedatespec._flatpickr; - if ( $("#onsite_checkout").prop('checked') ) { + if ( $("#onsite_checkout").prop('checked') || $('#stickyduedate').prop('checked') ) { duedatespec_fp.setDate("[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]"); } else { duedatespec_fp.setDate(""); -- 2.39.2