From f7fcdc7cf3e7862a0de51b8bae6f80169b72db4a Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 10 Jan 2017 11:49:11 +0000 Subject: [PATCH] Bug 14570 - Followup Fix small errors in update child script --- members/update-child.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/members/update-child.pl b/members/update-child.pl index 17ace87..f1f0b8c 100755 --- a/members/update-child.pl +++ b/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'}; -- 2.1.4