]> git.koha-community.org Git - koha.git/commit
Bug 29795: add empty value for branchcode on self-reg form
authorLucas Gass <lucas@bywatersolutions.com>
Tue, 4 Jan 2022 22:44:32 +0000 (22:44 +0000)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 7 Mar 2022 20:10:16 +0000 (20:10 +0000)
commitab7184a4dd6b59d3419c6532edc0d62c83398c7f
tree043d9afbbde787424692e40c8c3b3952d13a3f94
parentac153d1284f1bd0805480a1caaf16156e50a3333
Bug 29795: add empty value for branchcode on self-reg form

1. Set branch code as a PatronSelfRegistrationBorrowerMandatoryField
2. Go to the self reg form and look at the Home library field, it defaults to the first choice alphabetically
3. Fill out the other required fields and the captcha. Don't change the branchcode value.
4. Submit the form, it submits.
5. If branchcode is required it should default to an empty value and force the user to make a choice.
6. Apply patch
7. Repeat 1-3
8. Now you cannot submit the form unless you choose a branchcode
9. Make sure it still works normally when branchcode is not in PatronSelfRegistrationBorrowerMandatoryField

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 51f3360434cc29773539eef9ccd59ff44d2e9f1e)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt