]> git.koha-community.org Git - koha.git/commit
Bug 33345: On-site checkout checkbox does not work since issue date using flatpickr
authorFridolin Somers <fridolin.somers@biblibre.com>
Mon, 27 Mar 2023 21:29:01 +0000 (11:29 -1000)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Tue, 18 Apr 2023 12:04:58 +0000 (12:04 +0000)
commitfadf73ca5ae3126c5f94e8ec6237bfb1c1fc8db9
treef17600e1fe3de488360d5f4443ee8bba1262c84e
parent717715dd9ed85856bb9a1f8582e3a9abdc3bf512
Bug 33345: On-site checkout checkbox does not work since issue date using flatpickr

Since Bug 30718, date due uses flatpickr.
The JavaScript code setting due date via on-site checkout checkbox needs to be adapted.
Sort of like Bug 30717.

This patch renames the variable sent to template
'today_due_date_and_time' to avoid confusion with variable 'todaysdate'
used in other templates.

Test plan :
1) Enable system preference 'OnSiteCheckouts'
2) Go to a patron circulation page /cgi-bin/koha/circ/circulation.pl
3) Click on settings icon inside barcode input
=> Check due date input is empty
4) Click on 'On-site checkout'
=> Check due date input is filled with today date at 23:59
5) Fill barcode input and do check-out
6) Check due date is correct

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit dae97fd2b70da860cced08e572a402ce477b5285)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt