[Koha-bugs] [Bug 28351] Cannot set restrictions when dateformat is other than mm/dd/yyyy

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat May 15 14:32:43 CEST 2021


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

--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 121017
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121017&action=edit
Bug 28351: Update to latest jquery-ui-timepicker-addon

This patch updates to the latest version of the library. It fixes the
collision there seems to exist between our version of JQuery, JQuery-UI
and the datetime plugin.

Note: It feels like we should get rid of this library as this version
dates back to 2016. Our previous version (1.4.3) was dated November
2013. The author recomends moving to https://flatpickr.js.org/

Anyway, this solves our urgent issues.
To test:
1. Have dateformat set to something other than 'us' (I picked
   dd/mm/yyyy).
2. Open your browser inspector in the console
3. Find a patron on the staff interface
4. Try tadding a restriction dated at some date in which the day number
   is higher than 12
=> FAIL: It puts the current day (as a fallback), an error about the
passed date being invalid is reported in the console
5. Apply this patch and reload all the things, just in case
6. Repeat 4
=> SUCCESS: It picks the date, no noticeable problems
7. Sign off :-D

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


More information about the Koha-bugs mailing list