View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008137 | mantisbt | bugtracker | public | 2007-07-10 14:58 | 2009-06-26 14:15 |
Reporter | edwardgao | Assigned To | dhx | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.1.0a2 | ||||
Fixed in Version | 1.2.0rc1 | ||||
Summary | 0008137: Custom constants do not work | ||||
Description | Not like config_inc.php, you need to overwrite the default values. But in the core.php,
| ||||
Additional Information | Suggest adjust the sequence of constants definition. As I redefined a customized "resolved" status, and the value is not '80' in $g_status_enum_string, the constant of "RESOLVED" caused an email problem. Because only '80' is unset in the email_api.php. Not my "resloved" status, even I changed the constants definition, as it is loaded after the default one, it does not work at all. Also, I found there are some files (time tracking) use '80' directly instead of "RESOLVED" constant. This will bring much trouble when customized the status. | ||||
Tags | No tags attached. | ||||
I've found the values used (rather than the constants) in the following files: graphs\graph_by_cumulative.php Please include any other files that does the same and not listed above. At the moment is is not recommended to change the numbers of existing statuses, specially the resolved one. I typically define the other constants around it. However, as a possible fix, we can include the custom constants first, and then in our constants we do define them if not defined already. Specially for the ones that we expect them to be customized by users. |
|
I notice that files in \graph\ folder are not used in Mantis. |
|
No, they are not used in current version. My question is what if we have already customized RESOLVED to be 75, Should we go back to database to change all the statuses back to 80? Will this cause any problems? I believe I need to change the bug and bug_history table. What is your estimation if I do not change the RESOLVED back to 80? I suggest the "resloved" value to be customizable. because you never know what is a "resolved", some think after unit test, some think when moved to QA test, some think after QA test, some think after production depolyment. |
|