Lines 285-290
foreach my $guarantor (@guarantors) {
Link Here
|
285 |
} |
285 |
} |
286 |
} |
286 |
} |
287 |
|
287 |
|
|
|
288 |
my @valid_relationships = split(/\|/, C4::Context->preference('borrowerRelationship'), -1); |
289 |
if (@valid_relationships) { |
290 |
my @new_guarantor_id = $input->multi_param('new_guarantor_id'); |
291 |
my @new_guarantor_relationship = $input->multi_param('new_guarantor_relationship'); |
292 |
|
293 |
for ( my $i = 0 ; $i < scalar @new_guarantor_id; $i++ ) { |
294 |
my $guarantor_id = $new_guarantor_id[$i]; |
295 |
my $relationship = $new_guarantor_relationship[$i]; |
296 |
|
297 |
next unless $guarantor_id; |
298 |
unless ( grep { $_ eq $relationship } @valid_relationships ) { |
299 |
push @errors, 'ERROR_invalid_relationship'; |
300 |
} |
301 |
} |
302 |
} |
303 |
|
288 |
###############test to take the right zipcode, country and city name ############## |
304 |
###############test to take the right zipcode, country and city name ############## |
289 |
# set only if parameter was passed from the form |
305 |
# set only if parameter was passed from the form |
290 |
$newdata{'city'} = $input->param('city') if defined($input->param('city')); |
306 |
$newdata{'city'} = $input->param('city') if defined($input->param('city')); |
291 |
- |
|
|