]> git.koha-community.org Git - koha.git/commit
Bug 18011: Enrollment period date on patron category can be set in the past without...
authorOwen Leonard <oleonard@myacpl.org>
Fri, 12 Apr 2019 11:04:06 +0000 (11:04 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 10 May 2019 20:13:06 +0000 (20:13 +0000)
commit1e8c73b93319132581c16e0a48abc37144e13fee
treea96d7c979649f756b6768ad06a3743f1cf8d6f59
parentf9001c9bdb4f58352e2b5fffbad720a50f2abd68
Bug 18011: Enrollment period date on patron category can be set in the past without any error/warning messages

This patch modifies the patron category edit form so that the enrollment
period datepicker widget cannot be used to select a date in the past.

The <input> element had a "datepicker" class, which triggers a default
datepicker configuration. This was overriding the configuration in the
page-specific JavaScript file.

To test, apply the patch and go to Administration -> Patron categories.

Click the "Enrollment period -> Until date" field and verify that dates
before today are disabled.

Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 34c835ed141a3b4758ad77e5b72f30e83d57024f)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 89f0c3a9da9d009e7fea0c76f706676078dc9860)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt