]> git.koha-community.org Git - koha.git/commit
Bug 17524: Fix datepicker check for iso dates
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 31 Oct 2016 14:40:51 +0000 (14:40 +0000)
committerFrédéric Demians <f.demians@tamil.fr>
Wed, 2 Nov 2016 18:44:22 +0000 (18:44 +0000)
commit0e28efe9ee7b16b05624ffaf90fc3c4e53ab7f36
tree5c6f9d9972b2969748263d729cace279bd39c2ce
parenta2d0b69bf6f1baf9c7248b6d36b64c25dbc0f3dd
Bug 17524: Fix datepicker check for iso dates

Iso dates are yyyy-mm-dd, the is_valid JS function
expects \d{2}-\d{2}-\d{4} when it should be \d{4}-\d{2}-\d{2}

Test plan:
Switch DateFormat to iso
Set a due date using the datepicker
=> Should work as expected

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 23f4830095d64d9a421a458fe5582930aa229aa7)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc