]> git.koha-community.org Git - koha.git/commit
Bug 16286 - Use validation plugin when adding or editing patron category
authorOwen Leonard <oleonard@myacpl.org>
Fri, 15 Apr 2016 18:56:14 +0000 (14:56 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 29 Apr 2016 14:54:14 +0000 (14:54 +0000)
commitf471ed3903e9aedb2db06b634ffded308b23d198
treee34b985a3d72a9d490b80391079bdebcd0d4a883
parent064cce955b64240c5a6a4c9e0b9cc2b878f96d68
Bug 16286 - Use validation plugin when adding or editing patron category

This patch updates the patron category entry form so that it is
validated using the staff client's globally-included form validation
plugin. This patch also moves the page's JavaScript into a separate
file.

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

- Create a new category. Try to submit the form with the following
  fields empty:
  - Category code
  - Description
  - Both enrollment period fields
  - Category type
- Try to enter data in the category code field which contains characters
  other than letters, numbers, hyphens, or underscores.
- Try to enter non-numeric data in the following fields:
  - Enrollment period in months
  - Age required
  - Upper age limit
  - Enrollment fee
  - Hold fee
- Try to submit the form with both enrollment period fields filled.

Followed test plan, works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/js/categories.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt