Bug 27755

Summary: Do not explode when importing patrons without valid guarantor_relationships
Product: Koha Reporter: Andrew Fuerste-Henry <andrewfh>
Component: ToolsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 26059    
Bug Blocks:    

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