]> git.koha-community.org Git - koha.git/commit
Bug 28930: Keep cardnumber be editable after server side form validation fails during...
authorAndreas Jonsson <andreas.jonsson@kreablo.se>
Tue, 31 Aug 2021 12:50:03 +0000 (12:50 +0000)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 8 Oct 2021 14:33:07 +0000 (10:33 -0400)
commitd193fa8b3e657abd66032f9ab7f92d3e92d64e1d
tree1b8b9f0e2eb9ce471cfd260a33d3eef492fd8483
parent7e4234c0a25b211a6bb2480dca70232b4642aee8
Bug 28930: Keep cardnumber be editable after server side form validation fails during self registration.

Test plan:

- Enable the system preference PatronSelfRegistration
- Make sure  PatronSelfRegistrationBorrowerUnwantedField does not
  contain cardnumber.
- Set the system preference  GDPR_Policy to "Enforce".
- In the OPAC click "Log in to your account" and "Register here".
- Fill out the form with valid data, but make sure you leave the
  checkbox under "GDPR consent" unchecked.
- Submit the form
- You will get back the form with the error message "You have not filled
  out all required fields. Please fill in all missing fields and
  resubmit."
- Without patch: cardnumber is not editable, and there is no input
  element for borrower_cardnumber (so the cardnumber will be lost when
  resubmitting the form)
- With patch: cardnumber is editable.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt