Dependency Graph
View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010393 | mantisbt | feature | public | 2009-04-24 01:32 | 2009-10-07 14:19 |
Reporter | Assigned To | dhx | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.0a3 | ||||
Target Version | 1.2.0rc2 | Fixed in Version | 1.2.0rc2 | ||
Summary | 0010393: SQL error with "hide inactive filter" feature on manage_user_page.php | ||||
Description | Dear All, In manage_user_page when I select the 'Hide Inactive' checkbox and click 'Apply Filter' i am facing this issue: It is not showing the user after filter: Error I faced: 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 '?) - TO_DAYS(last_visit) < '7') | ||||
Tags | No tags attached. | ||||
I've confirmed this on this bug tracker which is currently running 1.2.0rc1. |
|
Problem was due to the addition of paging support, etc. Line 213 of manage_user_page.php has this:
Due to the changes of earlier patches, the parameter is no longer bound to the query earlier, as the comment on line 215 suggests. Replacing this with this line, which mirrors the change made to the count query before it, fixes the issue: |
|
Thanks for reporting the issue prabhurangan. And thanks tcharron for the fix. I've applied it to the git master and backported it to the 1.2.x branch. |
|
MantisBT: master baa88a50 2009-08-07 00:29 Details Diff |
Fix 0010393: SQL query error with hide inactive users filter On manage_user_page there exists a "hide inactive users" filter that was broken due to an invalid SQL query. Thanks to prabhurangan for reporting this issue and tcharron for a solution to the problem. |
Affected Issues 0010393 |
|
mod - manage_user_page.php | Diff File | ||
MantisBT: master-1.2.x 34d3633a 2009-08-07 00:29 Details Diff |
Fix 0010393: SQL query error with hide inactive users filter On manage_user_page there exists a "hide inactive users" filter that was broken due to an invalid SQL query. Thanks to prabhurangan for reporting this issue and tcharron for a solution to the problem. |
Affected Issues 0010393 |
|
mod - manage_user_page.php | Diff File |