Bugzilla – Attachment 159585 Details for
Bug 18885
When 'on-site checkout' was used, the 'Specify due date' should be emptied for next checkout unless OnSiteCheckoutAutoCheck
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18885: Specify due date behavior according to on-site checkbox
Bug-18885-Specify-due-date-behavior-according-to-o.patch (text/plain), 1.65 KB, created by
Biblibre Sandboxes
on 2023-12-05 14:22:47 UTC
(
hide
)
Description:
Bug 18885: Specify due date behavior according to on-site checkbox
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2023-12-05 14:22:47 UTC
Size:
1.65 KB
patch
obsolete
>From dbe26fdca3e23272fc2fdaca3dfef255640713ca Mon Sep 17 00:00:00 2001 >From: Thibaud Guillot <thibaud.guillot@biblibre.com> >Date: Tue, 31 Oct 2023 13:57:00 +0100 >Subject: [PATCH] Bug 18885: Specify due date behavior according to on-site > checkbox > >When a on-site checkout is performed a date is automatically added but >if you unchecked the date remains. Even with OnSiteCheckoutAutoCheck >syspref > >Test plan: >1) Do an on-site checkout by clicking on checkbox and see date added >2) Unchecked and see that the date remains on input >3) Do another test with OnSiteCheckoutAutoCheck enabled >4) Apply this patch and repeat actions > >Normally now its works correctly > >Signed-off-by: tuxayo <victor@tuxayo.net> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 4 +++- > 1 file changed, 3 insertions(+), 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 91a77187d5..80059e2099 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -995,9 +995,11 @@ > > // On-site checkout > function toggle_onsite_checkout(){ >+ const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr; > if ( $("#onsite_checkout").prop('checked') ) { >- const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr; > duedatespec_fp.setDate("[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]"); >+ } else { >+ duedatespec_fp.setDate(""); > } > } > >-- >2.30.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 18885
:
158115
|
159585
|
163692