Bug 30151

Summary: branchcode should always be in PatronSelfRegistrationBorrowerMandatoryField
Product: Koha Reporter: Fridolin Somers <fridolin.somers>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: emily.lamancusa, lucas
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 29795    
Bug Blocks:    

Description Fridolin Somers 2022-02-22 00:15:17 UTC
branchcode should always be in PatronSelfRegistrationBorrowerMandatoryField
See Bug 29795 comments
Comment 1 Katrin Fischer 2023-06-17 15:44:21 UTC
Hi Frido, can you explain a bit more?
Comment 2 Emily Lamancusa 2023-07-10 20:56:09 UTC
It looks like this came about because of the odd behavior that can occur if branchcode is not mandatory for OPAC self-registration, right? Koha won't force a customer to choose a branchcode if it's not mandatory, but it can't be left blank either because it's required by the database, so it will simply default to the branchcode that comes first alphabetically.

I wonder if a better solution would be to add a means of specifying a default branchcode for self-registration. That would allow branchcode to be added to PatronSelfRegistrationBorrowerUnwantedField if desired, too.