View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0019482 | mantisbt | custom fields | public | 2015-03-10 13:31 | 2017-12-04 02:17 |
| Reporter | apaulet | Assigned To | vboctor | ||
| Priority | none | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.2.19 | ||||
| Target Version | 2.9.0 | Fixed in Version | 2.9.0 | ||
| Summary | 0019482: Using custom fields (date) with default value and required on resolve displays an error | ||||
| Description | I create a custom field test_date which must be displayed and is required at the step resolve. I set a default value to {+1 days}. When I report a bug, when I submit it, I have the message : | ||||
| Steps To Reproduce | Create a new project "TEST",
| ||||
| Additional Information | If you remove the default value, you don't have the error. What I wanted to do : | ||||
| Tags | No tags attached. | ||||
|
Sorry, I forgot to set the reproductibility state to always |
|
|
In case I set default value "{today}" for custom field type "date" the value stored to database after bug created. The database value is "{today}" |
|
|
function cfdef_prepare_date_default implementation does not match it's description:
|
|
Correct.
Thanks for pointing that out |
|
|
custom_field_api didn't leave any chance to intervene to conduct and implement a default value depending on the bug status. It is sad that this issue exists in the open form starting in 2015. |
|
|
sorry. by implementation of custom_function_override_issue_update_validate that checks >status |
|
|
The following issues were fixed:
@demon_ru, feel free to open a different issue for ability to set custom field value on update. |
|