]> git.koha-community.org Git - koha.git/commit
Bug 30514: Error in date format check following datepicker removal
authorOwen Leonard <oleonard@myacpl.org>
Tue, 12 Apr 2022 14:23:42 +0000 (14:23 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 6 May 2022 20:33:10 +0000 (10:33 -1000)
commitbda0b1fd03e235bce70759010f6115862900e409
treea65511d6d79e7d55a3a06e3c8ec31faf740f05df
parentcbc3b19cdb8d993b555fe831faf5b039b44160e8
Bug 30514: Error in date format check following datepicker removal

This patch corrects the is_valid_date function in the OPAC and staff
interface so that it work correctly with Flatpickr.

To test, apply the patch and clear your browser cache if necessary.

- In the staff client, locate a bibliographic record and edit its items.
- Test that the "Date acquired" date picker works correctly and that
  there are no errors in the browser console.
- Test other date input fields to check that they still work, e.g.
  specify due date during checkout; Catalog statistics wizard; Patron
  entry/modification, etc.
- Perform similar tests in the OPAC: Hold suspension; Update your
  personal details.

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/js/calendar.js
koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc