]> git.koha-community.org Git - koha.git/commit
Bug 8000: (QA follow-up) Add email validation to system preferences
authorMaryse Simard <maryse.simard@inlibro.com>
Tue, 5 Feb 2019 23:26:42 +0000 (18:26 -0500)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 29 Apr 2019 15:08:47 +0000 (15:08 +0000)
commitf98037ac53f74a664f7ea1bdbe63d884fd5f4c6f
tree31acdd0f227e3aadec2997ebf76df6e30580de06
parent26a61c97f07a5a7354e1ae123f43d4cf13fbc5fb
Bug 8000: (QA follow-up) Add email validation to system preferences

This patch uses the JQuery validator plugin to add validation to preferences of class email in the system preferences page. A field containing an invalid value (even if not modified) should prevent saving.

To test, confirm that when entering an invalid email address in the SendAllEmailsTo field, an error message appears and saving is prevented.
Correcting the value should hide the message and let you save as normal.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt
koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js