To recreate: Make sure cardnumber is not in 'PatronSelfRegistrationBorrowerUnwantedField' Register a new patron using an existing cardnumber You get a 'card number is in use' error, but you can't edit the field
Created attachment 54970 [details] [review] Bug 17213 - Self registration cardnumber is not editable if errors found when form submitted To test: Enable self registration Make sure cardnumber is not in 'PatronSelfRegistrationBorrowerUnwantedField' Enter an invalid or used cardnumber Submit form Note errors appears correctly but cardnumber is not editable Apply Patch Enter an invalid or used cardnumber Submit form Note errors appears correctly and cardnumber is editable
Created attachment 54971 [details] [review] Bug 17213 - Add HTML5 validation to cardnumber field on patron self registration To test: Verify that different values in 'CardnumberLength' system preference display correctly in the self reigstration form
With the patch applied, instead of getting the 'cardnumber in use' error, the account is created with a NULL cardnumber!
Created attachment 55097 [details] [review] Bug 17213 - Add HTML5 validation to cardnumber field on patron self registration To test: Verify that different values in 'CardnumberLength' system preference display correctly in the self reigstration form
(In reply to Kyle M Hall from comment #3) > With the patch applied, instead of getting the 'cardnumber in use' error, > the account is created with a NULL cardnumber! Fixed bad copy paste error (wrong variable names)
Created attachment 55449 [details] [review] [SIGNED-OFF] Bug 17213 - Self registration cardnumber is not editable if errors found when form submitted To test: Enable self registration Make sure cardnumber is not in 'PatronSelfRegistrationBorrowerUnwantedField' Enter an invalid or used cardnumber Submit form Note errors appears correctly but cardnumber is not editable Apply Patch Enter an invalid or used cardnumber Submit form Note errors appears correctly and cardnumber is editable Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Created attachment 55450 [details] [review] [SIGNED-OFF] Bug 17213 - Add HTML5 validation to cardnumber field on patron self registration To test: Verify that different values in 'CardnumberLength' system preference display correctly in the self reigstration form Signed-off-by: Owen Leonard <oleonard@myacpl.org>
fatal: sha1 information is lacking or useless (koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt).
Created attachment 55530 [details] [review] Bug 17213 - Self registration cardnumber is not editable if errors found when form submitted To test: Enable self registration Make sure cardnumber is not in 'PatronSelfRegistrationBorrowerUnwantedField' Enter an invalid or used cardnumber Submit form Note errors appears correctly but cardnumber is not editable Apply Patch Enter an invalid or used cardnumber Submit form Note errors appears correctly and cardnumber is editable Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Created attachment 55531 [details] [review] Bug 17213 - Add HTML5 validation to cardnumber field on patron self registration To test: Verify that different values in 'CardnumberLength' system preference display correctly in the self reigstration form Signed-off-by: Owen Leonard <oleonard@myacpl.org>
The cardnumber is not unwanted... but still doesn't show up in my tests. What am I missing?
(In reply to Katrin Fischer from comment #11) > The cardnumber is not unwanted... but still doesn't show up in my tests. > What am I missing? Do you have AutoMemberNum enabled? That must be turned off to see card number
Created attachment 55665 [details] [review] [PASSED QA] Bug 17213 - Add HTML5 validation to cardnumber field on patron self registration To test: Verify that different values in 'CardnumberLength' system preference display correctly in the self reigstration form Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Created attachment 55666 [details] [review] [PASSED QA] Bug 17213 - Self registration cardnumber is not editable if errors found when form submitted To test: Enable self registration Make sure cardnumber is not in 'PatronSelfRegistrationBorrowerUnwantedField' Enter an invalid or used cardnumber Submit form Note errors appears correctly but cardnumber is not editable Apply Patch Enter an invalid or used cardnumber Submit form Note errors appears correctly and cardnumber is editable Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Created attachment 55667 [details] [review] [PASSED QA] Bug 17213 - Add HTML5 validation to cardnumber field on patron self registration To test: Verify that different values in 'CardnumberLength' system preference display correctly in the self reigstration form Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Pushed to master for 16.11, thanks Nick!
It doesn't apply on 16.05 branch. If it's required, a version of this patch for 16.05 should be submitted.