Bug 27755 - Do not explode when importing patrons without valid guarantor_relationships
Summary: Do not explode when importing patrons without valid guarantor_relationships
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: master
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 26059
Blocks:
  Show dependency treegraph
 
Reported: 2021-02-22 22:43 UTC by Andrew Fuerste-Henry
Modified: 2021-02-22 22:43 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuerste-Henry 2021-02-22 22:43:03 UTC
To recreate:
- set borrowerRelationship syspref to contain only "guardian"
- create a CSV containing one patron, in a category that can have a guarantor
- make sure your CSV contains a guarantor_id for an existing patron who can have guarantees
- make sure your CSV doesn't contain "guardian" for the relationship
- attempt to import your CSV with the Import Patrons tool
- get a server error about an invalid relationship