From daa5b200608f5284f1634ff8bd99b4e8e4fb24cb 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 Signed-off-by: Baptiste Wojtkowski --- Koha/Patron.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 62c3650..ab20e8c 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.43.0