[Koha-bugs] [Bug 15246] adding new patron results in branchcode foreign key error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 24 02:52:43 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15246

--- Comment #1 from Laura <lauraerinmann at gmail.com> ---
I was able to get past this by changing my Home > Administration > System
Preferences > Patrons.

I noticed that the "BorrowerUnwantedField was set to
"title|dateofbirth|branchcode"

This was causing the field not to render (even as a hidden field). By removing
branchcode from BorrowerUnwantedField, the branchcode field now renders, and
chooses as it's only option our library branch code (our koha instance only has
one libary).

As for solutions, instead of getting the database error and having to chase
through mysql logs, I would have ideally been met with a more understandable
"Branch code is required" or better yet, the branch code, being a required
field, should be rendered as a hidden input or computed server side.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list