View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0009157 | mantisbt | other | public | 2008-05-15 12:13 | 2009-06-23 15:28 | ||||
Reporter | xeraf | Assigned To | grangeway | ||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Product Version | 1.1.1 | ||||||||
Target Version | 1.2.0rc1 | Fixed in Version | 1.2.0rc1 | ||||||
Summary | 0009157: 'Change status to' combo shows @@ when the status list is empty. | ||||||||
Description | If the workflow determines that there is no status to go to from a status (e.g., $g_status_enum_workflow[CLOSED] ='';) the 'Change status to:' combo for bugs with that status shows '@@'. | ||||||||
Steps To Reproduce | (a) Configure the workflow with a status with no destinations. | ||||||||
Additional Information |
The problem lies in the explode_enum_string function. When the argument passed to the function is an empty string, it returns explode( ',', '' ). And that is an array with one empty value. The solution is to return an empty array when an empty string is received. The function would be:
| ||||||||
Tags | patch | ||||||||