[Koha-bugs] [Bug 27857] Koha::Patron->extended_attributes skips checks

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 31 13:17:26 CEST 2021


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

--- Comment #29 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 119040
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=119040&action=edit
Bug 27857: (follow-up) Use a more fine-grained exception for mandatory
attributes

On using this dev for the API, I found that the original FKConstraint
exception was too generic, and could be confused with those risen by
Koha::Patron->store. So this patch changes the exception that is thrown
in Koha::Patron->extended_attributes

The change is reflected on the test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Patron.t
=> SUCCESS: Tests pass, and they include the new exception
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

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


More information about the Koha-bugs mailing list