Bugzilla – Attachment 73459 Details for
Bug 19907
Email validation on patron add/edit not working
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19907: Fix email validation in patron edit form
Bug-19907-Fix-email-validation-in-patron-edit-form.patch (text/plain), 2.24 KB, created by
Katrin Fischer
on 2018-03-30 10:28:20 UTC
(
hide
)
Description:
Bug 19907: Fix email validation in patron edit form
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-03-30 10:28:20 UTC
Size:
2.24 KB
patch
obsolete
>From 1ce526cb4d90e411ec873c46b5ba8152f2b08a6e Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Wed, 3 Jan 2018 11:20:46 +0000 >Subject: [PATCH] Bug 19907: Fix email validation in patron edit form > >Test plan: >0) Confirm that email validation is not working in add/edit patron form >1) Apply the patch >2) Edit/add patron, the e-mail validation should be working now >3) Ensure the password validation is still working (use test plan from > bug 19908) > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 12 ------------ > koha-tmpl/intranet-tmpl/prog/js/members.js | 7 +++++++ > 2 files changed, 7 insertions(+), 12 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index a70a6457b4..4309824da9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -1245,18 +1245,6 @@ > else {return false;} > }); > >- $("#entryform").validate({ >- rules: { >- password: { >- password_strong: true, >- password_no_spaces: true >- }, >- password2: { >- password_match: true >- } >- } >- }); >- > $("#saverecord").click(function(){ > if( check_form_borrowers() ){ > $("#entryform").submit(); >diff --git a/koha-tmpl/intranet-tmpl/prog/js/members.js b/koha-tmpl/intranet-tmpl/prog/js/members.js >index aea1f6808e..e586e60d23 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/members.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/members.js >@@ -319,6 +319,13 @@ $(document).ready(function(){ > }, > B_email: { > email: true >+ }, >+ password: { >+ password_strong: true, >+ password_no_spaces: true >+ }, >+ password2: { >+ password_match: true > } > }, > submitHandler: function(form) { >-- >2.14.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19907
:
70244
|
73457
|
73459
|
73463