View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0009099 | mantisbt | filters | public | 2008-04-23 03:00 | 2008-08-11 09:41 |
| Reporter | atrol | Assigned To | daryn | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.2.0a1 | ||||
| Fixed in Version | 1.2.0a2 | ||||
| Summary | 0009099: using advanced filtering leads to APPLICATION ERROR 0000401 | ||||
| Description | start "View Issues Page" --> APPLICATION ERROR 0000401 Database query failed. Error received from database was 0001064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 for the query: SELECT Count(DISTINCT mantis_bug_table.id) as idcnt FROM mantis_project_table, mantis_bug_table WHERE mantis_project_table.enabled = 1 AND mantis_project_table.id = mantis_bug_table.project_id AND ( ( mantis_bug_table.project_id = 1 ) AND ( ( mantis_bug_table.view_state = 10 ) OR ( mantis_bug_table.reporter_id = 4637 ) ) ) AND ( mantis_bug_table.severity in (60, 70, 80) ) AND ( mantis_bug_table.status in (10, 20, 30, 40, 50, ?, ?, ?) ) | ||||
| Tags | No tags attached. | ||||
|
new temporary variable t_where_tmp was not getting reset for each property of the filter. When more than one property had multiple selections the query was looking for a parameter count equal to the current property's selection plus the sum of all previous parameter counts. Clearing t_where_tmp for each property resolved this issue. http://mantisbt.svn.sourceforge.net/viewvc/mantisbt?view=rev&revision=5328 |
|
|
MantisBT: master d5d90291 2008-06-05 09:32 Details Diff |
Fix bug 0009099. t_where_tmp array should be reset for each property. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5328 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9 |
Affected Issues 0009099 |
|
| mod - core/filter_api.php | Diff File | ||