]> git.koha-community.org Git - koha.git/commit
Bug 11792 - Use validation plugin when creating new currency
authorOwen Leonard <oleonard@myacpl.org>
Wed, 19 Feb 2014 16:59:33 +0000 (11:59 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 21 May 2014 08:08:39 +0000 (10:08 +0200)
commit865e58399ca0bd6f1ce27a1323b75ffa99cefe2a
treefba6be5601c6c68981387708c944172905c11b26
parent4478890d55acd9171148a038b9362300b3ad7db9
Bug 11792 - Use validation plugin when creating new currency

The page for adding a new currency includes some custom form
validation JavaScript which can be removed in favor of HTML5 validation
attributes and Koha's built-in validation plugin. This patch does so.

To test, apply the patch and go to Administration -> Currencies &
Exchange rates -> New currency. Try submitting the form without entering
a currency, rate, and/or symbol. This should trigger a validation warning.

Submission of the form with valid data should work correctly. Editing an
existing currency 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>
(cherry picked from commit 5dc093b30e8d949f39a67bf2ac40f219f6167d0a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt