Bug 15938 - Use validation plugin when adding or editing classification sources and...
authorOwen Leonard <oleonard@myacpl.org>
Mon, 29 Feb 2016 16:53:14 +0000 (11:53 -0500)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 29 Apr 2016 13:30:41 +0000 (13:30 +0000)
commit9e428504916150edac6d201065610c587bf9ee4e
tree83a234ae79c76873cf8e408588909c4be9e23977
parentff6523765ddb76f388a38c1a0fd3a39b5ffe69b6
Bug 15938 - Use validation plugin when adding or editing classification sources and filing rules

In Administration -> Classification sources there is some embedded
JavaScript which checks for empty form values. This patch removes that
JS and adds validation using the globally-included validation plugin
instead.

To test, apply the patch and go to Administration -> Classification
sources.

- Click to add a new classification source and confirm that you cannot
  submit the form with empty required values.
- Edit an existing classification source and confirm that you cannot
  empty a required field and submit the form.
- Repeat the previous two steps with filing rules.

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt