]> git.koha-community.org Git - koha.git/commit
Bug 28351: (bug 26261) Fix datepicker for dateformat ne mm/dd/yyyy
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 18 May 2021 07:10:26 +0000 (09:10 +0200)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Tue, 25 May 2021 13:59:49 +0000 (13:59 +0000)
commit34c8ad67e7de4e47d2ce2a929fdcf06ce39585bd
treea2e126dbdfdb6d2240ba8bb2eff1cde9ce40b74c
parent4579636290927942f41d63e486267c8e5e6bacb8
Bug 28351: (bug 26261) Fix datepicker for dateformat ne mm/dd/yyyy

This patch restores the same code we have prior to bug 26261

0. Set dateformat to mm/dd/yyyy
1. Go to a patron detail page
2. Open the 'Restrictions' tab
3. Choose a future date in which the day is higher than 12
=> SUCCESS: The input has the date we chose
4. Set dateformat to dd/mm/yyyy
5. Repeat 3
=> FAIL: It sets the current date, the browser console shows an error.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 539396fb27e02118d34f3b914fd2baffee752aa7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 43e0ad3fe148cd3d8538ba629d177e45aab9f500)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/js/calendar.js