@@ -, +, @@ --- members/update-child.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/members/update-child.pl +++ a/members/update-child.pl @@ -72,10 +72,10 @@ if ( $op eq 'multi' ) { } elsif ( $op eq 'update' ) { my $patron = Koha::Patrons->find($borrowernumber); - $_->delete() for $patrons->guarantor_relationships(); + $_->delete() for $patron->guarantor_relationships(); - my $patron_hashref = patron->unblessed(); - my $borcat = GetBorrowercategory($catcode); + my $patron_hashref = $patron->unblessed(); + my $borcat = Koha::Patron::Categories->find($patron->categorycode); $patron_hashref->{'category_type'} = $borcat->{'category_type'}; $patron_hashref->{'categorycode'} = $catcode; $patron_hashref->{'description'} = $borcat->{'description'}; --