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