View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0011631 | mantisbt | custom fields | public | 2010-03-08 18:43 | 2010-06-09 03:45 |
| Reporter | RyanLind | Assigned To | dhx | ||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | duplicate | ||
| Product Version | 1.2.0 | ||||
| Summary | 0011631: Custom Fields with special characters in the name cause SQL errors on sort. | ||||
| Description | If I create a custom field with a character in it such as "(" or "#" and I added it as a column to my view issues, sorting on this column causes a crash: Database query failed. Error received from database was 0001051: Unknown table 'mantis_bug_table' for the query: SELECT DISTINCT mantis_bug_table.*, mantis_bug_table.last_updated ... I then go to Manage custom fields and rename it (Eg test # -> test number) and it works fine. I can sort on it and everything. I've seen some similar issues related to sorting on custom fields, but none quite the same as this. | ||||
| Steps To Reproduce | 1) Create a custom field with a # sign (e.g. "Test #") | ||||
| Additional Information | The offending code is in filter_api.php on line 2,018 (as of 1.2.0): ----PHP------ The above causes the SQL error. | ||||
| Tags | No tags attached. | ||||