From 378fafcc676ad1cfe46f360baeea463d471faca1 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 11 Sep 2024 13:53:53 +0000 Subject: [PATCH] Bug 37892: Fix patron creation Signed-off-by: Olivier V Signed-off-by: Brendan Lawlor --- Koha/Patron.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 62c3650725..ab20e8c186 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -315,7 +315,7 @@ sub store { } foreach my $guarantor (@$guarantors) { - if ( $guarantor->is_child or $guarantor->category->can_be_guarantee ) { + if ( $guarantor->is_child ) { Koha::Exceptions::Patron::Relationship::InvalidRelationship->throw( invalid_guarantor => 1 ); } } -- 2.39.2