View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0007833 | mantisbt | customization | public | 2007-03-16 17:25 | 2012-12-30 09:19 |
| Reporter | edwardgao | Assigned To | dregad | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Summary | 0007833: Customer Constants Do not work | ||||
| Description | We customerized a "Return" status and reset those constants: In: custom_constant_inc.php, we defined: But every time we assign issues to users, the status will be changed to "To_Test" instead of "'ASSIGNED'". It looks like mantis is still set the value to "50" instead of 30. | ||||
| Steps To Reproduce | define "'ASSIGNED' as other number, and other status to be 50. | ||||
| Tags | No tags attached. | ||||
|
have you also altered $g_status_enum_string |
|
|
What is $g_bug_assigned_status set to? It is probably set to ASSIGNED, which at this stage is set to 50. The idea is to define new constants in custom_constant_inc.php. I would introduce MYASSIGNED status and use it instead of ASSIGNED. |
|
|
Thank you very much for your help: exk72, vboctor, Status to assign to the bug when assigned.$g_bug_assigned_status = ASSIGNED; But I can not understand that I have defined "ASSIGNED" as 30 in the custome_constant_inc.php. Why $g_bu_assigned_status is set to 50 instead of 30 at this stage? |
|
|
Currently, I have to set it to be 30 instead of "ASSIGNED" in the config_inc.php. I know it is kind of stupid. But I really want to use "ASSIGNED", Do you think there will be any potential trouble? By the way, it may be helpful to post my customization here. Do you think there will be big problems with my customization? Thanks a lot. config_inc.php: 20:acknowledged,30:assigned,40:in_progress,50:to_test,60:returned,80:resolved,90:closed
$g_access_levels_enum_string = '10:viewer,25:user,40:model office,50:vendor,55:developer,70:manager,90:administrator';
custom_strings_inc.php:
$s_access_levels_enum_string = '10:viewer,25:user,40:model office,50:vendor,55:developer,70:manager,90:administrator';
custom_constant_inc.php: |
|
|
Over 5 years later ;-) The problem is due to your trying to redefine an existing constant ASSIGNED (=50 in constant_inc.php). |
|