View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007754 | mantisbt | custom fields | public | 2007-02-07 07:10 | 2009-06-26 12:05 |
Reporter | dyawlak | Assigned To | jreese | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Summary | 0007754: Empty Custom Date Fields | ||||
Description | I have create a custom date field 'Required By' which can be left blank However, any blank date creates an error : SYSTEM WARNING: date() expects parameter 2 to be long, string given Is it possible to trap blank dates and print null instead? Many thanks | ||||
Steps To Reproduce | Create custom date field create custom_functions_inc.php in root and add $t_columns[] = 'custom_Required By'; before the return; command | ||||
Additional Information | Error is displayed on all screens where field exists. | ||||
Tags | No tags attached. | ||||
Resolved the issue by changing the code in the function "string_custom_field_value" of custom_field_api.php to read |
|
Found that having empty custom date values also caused problems when displaying issue history. When updating at a point in workflow when the custom date field is required on update, the resultant bug view would show, just above the "Issue History" section: SYSTEM WARNING: date() expects parameter 2 to be long, string given Found the issue stemmed from the same issue, but the history_api.php file calls string_custom_field_value_for_email() instead of string_custom_field_value(). Resolved this issue by changing function string_custom_field_value_for_email in custom_field_api.php in the exact same fashion as dyawlak's change: |
|
This issue is still present 1.1.2 |
|
Reproduced in 1.1.6 |
|
I believe this is a duplicate of the recently-resolved 0010184. |
|