[Koha-bugs] [Bug 33345] On-site checkout checkbox does not work since issue date using flatpickr

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 27 23:48:37 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33345

Fridolin Somers <fridolin.somers at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #148786|0                           |1
        is obsolete|                            |

--- Comment #3 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 148787
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148787&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list