GX-Bug #42018 » DateOfBirthFix.patch
src/admin/create_account.php (revision ) | ||
---|---|---|
285 | 285 |
$countryZone |
286 | 286 |
); |
287 | 287 | |
288 |
$dateOfBirth = new DateTime('0000-00-00');
|
|
288 |
$dateOfBirth = new DateTime('0000-01-01');
|
|
289 | 289 |
if(ACCOUNT_DOB == 'true') |
290 | 290 |
{ |
291 | 291 |
$dateOfBirth = new DateTime(xtc_date_raw($customers_dob)); |
src/GXEngine/Extensions/Customers/CustomerInputToCollectionTransformer.inc.php (revision ) | ||
---|---|---|
77 | 77 |
$customerCollection->setValue('gender', xtc_db_prepare_input($inputArray['gender'])); |
78 | 78 |
} |
79 | 79 | |
80 |
$customerCollection->setValue('dob', '00.00.0000');
|
|
80 |
$customerCollection->setValue('dob', '01.01.0000');
|
|
81 | 81 |
if(ACCOUNT_DOB === 'true') |
82 | 82 |
{ |
83 | 83 |
$customerCollection->setValue('dob', xtc_db_prepare_input($inputArray['dob'])); |