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)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 16 Apr 2019 13:17:32 +0000 (13:17 +0000)
commit34c835ed141a3b4758ad77e5b72f30e83d57024f
tree88cacea69c828cb8ec804184acffce874a18dac2
parent118f685dbf1519077ece65a47f83bff179efbf9b
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>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt