View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0027956 | mantisbt | custom fields | public | 2021-02-06 11:50 | 2021-03-07 18:28 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Target Version | 2.25.0 | Fixed in Version | 2.25.0 | ||
Summary | 0027956: Remove need to use {} for dynamic dates in custom fields default value | ||||
Description | Until now, to specify a dynamic date as default, the admin had to enclose the format in curly brackets, e.g. This is actually not necessary, as the PHP primitives used to transform the format into a timestamp (i.e. strtotime() or DateTime objects) are smart enough to deal with the input without the brackets. | ||||
Tags | No tags attached. | ||||
MantisBT: master 6fc8fe61 2021-01-31 03:09 Details Diff |
Admin Guide: improve Custom Field types doc Fixes 0027983, 0027956 |
Affected Issues 0027956, 0027983 |
|
mod - docbook/Admin_Guide/en-US/Customizing.xml | Diff File | ||
MantisBT: master efd8d1fb 2021-01-31 04:00 Details Diff |
Validate date custom fields default value format Prior to saving the custom field's definition, we try to convert the provided format to a date, and if that fails an error is thrown. This also removes the need to enclose the format within curly brackets (e.g. {tomorrow}); this is more user-friendly, and simplifies the code as the given value can be passed on as-is to DateTime transformation. Backwards-compatibility is maintained for now, but may be removed in a future release. Fixes 0027950, 0027956, 0027983 |
Affected Issues 0025981, 0027950, 0027956, 0027983 |
|
mod - core/cfdefs/cfdef_standard.php | Diff File | ||
mod - core/custom_field_api.php | Diff File | ||
mod - docbook/Admin_Guide/en-US/Customizing.xml | Diff File | ||
MantisBT: master 65b52878 2021-01-31 04:21 Details Diff |
Add admin check to validate date custom fields Issue 0027956 |
Affected Issues 0027956 |
|
add - admin/check/check_customfields_inc.php | Diff File | ||
mod - admin/check/index.php | Diff File |