]> git.koha-community.org Git - koha.git/commit
Bug 11787 - Use validation plugin when adding new vendor
authorOwen Leonard <oleonard@myacpl.org>
Tue, 18 Feb 2014 19:52:26 +0000 (14:52 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 20 Feb 2014 16:56:41 +0000 (16:56 +0000)
commit03675fd55320f3a9bc3d4c7475bc3b9696920bd9
tree07a36429c94b57f599d7e2b5cd06436d10b51d07
parent7faff33c8b9bd670cf7813f4cefb7aee38709ebb
Bug 11787 - Use validation plugin when adding new vendor

The vendor entry form uses some custom JavaScript which can be removed
in favor of HTML5 validation attributes and Koha's built-in validation
plugin. This patch does so.

Also corrected: Minor validation issue.

To test, apply the patch and go to Acquisitions -> New vendor. Try
submitting the form without entering a vendor name. This should trigger
a validation warning.

Submission of the form with valid data should work correctly. Editing an
existing vendor should also work correctly.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt