Lines 261-266
if ( ( $op eq 'insert' ) and !$nodouble ) {
Link Here
|
261 |
if ( $patrons->count > 0) { |
261 |
if ( $patrons->count > 0) { |
262 |
$nodouble = 0; |
262 |
$nodouble = 0; |
263 |
$check_member = $patrons->next->borrowernumber; |
263 |
$check_member = $patrons->next->borrowernumber; |
|
|
264 |
|
265 |
|
266 |
my @new_guarantors; |
267 |
my @new_guarantor_id = $input->multi_param('new_guarantor_id'); |
268 |
my @new_guarantor_relationship = $input->multi_param('new_guarantor_relationship'); |
269 |
foreach my $gid ( @new_guarantor_id ) { |
270 |
my $patron = Koha::Patrons->find( $gid ); |
271 |
my $relationship = shift( @new_guarantor_relationship ); |
272 |
next unless $patron; |
273 |
my $g = { patron => $patron, relationship => $relationship }; |
274 |
push( @new_guarantors, $g ); |
275 |
} |
276 |
$template->param( new_guarantors => \@new_guarantors ); |
264 |
} |
277 |
} |
265 |
} |
278 |
} |
266 |
|
279 |
|
267 |
- |
|
|