https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43807

--- Comment #5 from Frédéric Demians <[email protected]> ---
Created attachment 208341
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208341&action=edit
Bug 43807: Enforce BorrowerMandatoryField in the Koha::Patron->store method

This commit adds an exception for a missing mandatory field and enforces it
using a check_mandatory_fields option passed to the store method. In future
this could be enforced without the option but there are a large number of
instances, especially in unit tests that would need updating.

Test plan:
1) Set a selection of fields in BorrowerMandatoryField
2) Create a Patron via the API - it should succeed even with some of those
fields blank
3) Apply patches and restart_all
4) Re-try the request - an exception should be thrown

Assisted-by: Sonnet 5 (Anthropic)
Signed-off-by: Frédéric Demians <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to