[Koha-bugs] [Bug 28220] Exception not caught when importing patrons with invalid attribute type

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 6 12:53:38 CEST 2021


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

--- Comment #18 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Please try this patch, I think it covers a lot of cases.

Test plan (but be creative!):
Use the import patron tool to
1. Create a new patron with:
  * 1 new normal (non-repeatable, not unique) attribute
  * several repeatable attribute
  * unique with unique value
=> all good
2. Create a new patron with:
  * several new-repeatable attribute
=> boom
3. Create a new patron with:
  * unique with non-unique value
=> boom
4. Create a new patron with:
  * an invalid patron attribute type code (does not exist)

And do the same for an existing patron (with and without the "preserve patron
attributes" option).

If an error happened the patron will not be created/modified (attributes and
other infos)

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


More information about the Koha-bugs mailing list