From a863af823f503c2181ea25ed4b295efaddaa212d Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 11 Sep 2024 13:53:01 +0000 Subject: [PATCH] Bug 37892: Fix patron updates 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 fcbd6cd..62c3650 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -372,7 +372,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