View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017246 | mantisbt | custom fields | public | 2014-04-23 23:43 | 2015-04-28 03:39 |
Reporter | vboctor | Assigned To | vboctor | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.17 | ||||
Target Version | 1.3.0-beta.1 | Fixed in Version | 1.3.0-beta.1 | ||
Summary | 0017246: Date custom fields can't store dates pre-1970 | ||||
Description | If a user is to use custom fields for "date of birth", they will always get invalid date. The reason is that the validation assumes only dates are valid when their value is greater than 0. Though strtotime() returns 0 for 1970-01-01, false for invalid values, and negative for values before 1970. PHP versions before 5.1 used to return -1 for invalid values. But that is not longer the case. The fix is to drop the check that the value is positive and just check for false. (EDIT dregad: false, not negative) | ||||
Tags | mantishub | ||||
MantisBT: master 085986c7 2014-04-29 18:04 Details Diff |
Fixes 0017246: Date custom fields can't store dates pre-1970. |
Affected Issues 0017246 |
|
mod - core/custom_field_api.php | Diff File | ||
MantisBT: master 4d8aa439 2014-05-01 18:12 Details Diff |
Fixes 0017246: Date custom fields can't store dates pre-1970. - part 2 |
Affected Issues 0017246 |
|
mod - core/custom_field_api.php | Diff File |