Lines 482-497
sub ParseCgiForBorrower {
Link Here
|
482 |
} |
482 |
} |
483 |
} |
483 |
} |
484 |
|
484 |
|
485 |
my $dob_dt; |
485 |
if ( defined $borrower{'dateofbirth'} ) { |
486 |
$dob_dt = eval { dt_from_string( $borrower{'dateofbirth'} ); } |
486 |
my $dob_dt; |
487 |
if ( $borrower{'dateofbirth'} ); |
487 |
$dob_dt = eval { dt_from_string( $borrower{'dateofbirth'} ); } |
|
|
488 |
if ( $borrower{'dateofbirth'} ); |
488 |
|
489 |
|
489 |
if ( $dob_dt ) { |
490 |
if ( $dob_dt ) { |
490 |
$borrower{'dateofbirth'} = output_pref ( { dt => $dob_dt, dateonly => 1, dateformat => 'iso' } ); |
491 |
$borrower{'dateofbirth'} = output_pref( { dt => $dob_dt, dateonly => 1, dateformat => 'iso' } ); |
491 |
} |
492 |
} |
492 |
else { |
493 |
else { |
493 |
# Trigger validation |
494 |
# Trigger validation |
494 |
$borrower{'dateofbirth'} = undef; |
495 |
$borrower{'dateofbirth'} = undef; |
|
|
496 |
} |
495 |
} |
497 |
} |
496 |
|
498 |
|
497 |
# Replace checkbox 'agreed' by datetime in gdpr_proc_consent |
499 |
# Replace checkbox 'agreed' by datetime in gdpr_proc_consent |
498 |
- |
|
|