From b8ac781d7d363057c2ceae1c0818eac84530159f Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 16 Jul 2018 15:00:12 -0400 Subject: [PATCH] Bug 14570 [QA Followup]: Fix issue with only one new guarantor being saved --- members/memberentry.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index e9ce4a1992..331e7e147f 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -894,10 +894,10 @@ sub patron_attributes_form { sub add_guarantors { my ( $borrowernumber, $input ) = @_; - my @new_guarantor_id = scalar $input->param('new_guarantor_id'); - my @new_guarantor_surname = scalar $input->param('new_guarantor_surname'); - my @new_guarantor_firstname = scalar $input->param('new_guarantor_firstname'); - my @new_guarantor_relationship = scalar $input->param('new_guarantor_relationship'); + my @new_guarantor_id = $input->multi_param('new_guarantor_id'); + my @new_guarantor_surname = $input->multi_param('new_guarantor_surname'); + my @new_guarantor_firstname = $input->multi_param('new_guarantor_firstname'); + my @new_guarantor_relationship = $input->multi_param('new_guarantor_relationship'); for ( my $i = 0 ; $i < scalar @new_guarantor_id; $i++ ) { my $guarantor_id = $new_guarantor_id[$i]; -- 2.11.0