| Anonymous | Login | 05-19-2013 03:11 AM | ![]() |
| My View | View Issues |
| View Issue Details [ Jump to Notes ] | [ Print ] | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |
| 0002337 | SMF 2.0 | public | 2008-07-26 05:10 | 2009-03-12 20:18 | ||
| Reporter | SleePy | |||||
| Priority | normal | Severity | minor | Reproducibility | have not tried | |
| Status | resolved | Resolution | fixed | |||
| Platform | OS | OS Version | ||||
| Summary | 0002337: number of open moderation reports | |||||
| Description | In the Moderation.php file you have this part of the query in ModBlockReportedPosts(): WHERE ' . ($user_info['mod_cache']['bq'] == '1=1' || $user_info['mod_cache']['bq'] == '0=1' ? $user_info['mod_cache']['bq'] : 'lr.' . $user_info['mod_cache']['bq']) . ' AND lr.closed = {int:not_closed} AND lr.ignore_all = {int:not_ignored} Yet in the recountOpenReports() function you have: WHERE ' . $user_info['mod_cache']['bq'] . ' AND closed = {int:not_closed} AND ignore_all = {int:not_ignored}', The where part of this query is slightly different from the $user_info part of the query. I am not sure 100% if this is causing the issue, but here on simplemachines.org, I see that in the header it says "There are currently 2 moderator reports open." Yet when I go to view them, I see 3 of them actually. The server admin looked at this as well and it said 5 where open for him and it actually showed 6. | |||||
| Tags | Beta4 | |||||
| Attached Files | ||||||
Notes |
|
|
(0005155) Grudge (SMF Friend) 2008-07-26 06:32 |
That isn't the cause of the bug. Out of interset, if you log out then back in does the number match? |
|
(0005167) SleePy (Developer) 2008-07-26 14:12 edited on: 2008-07-26 14:13 |
I tested here at sm.org and a login/out did not change it. Granted this maybe an issue with the cache. It says there is 3 open, when I view it I see 4... I thought possible ignored boards where taking effect myself, but the query itself I can see both of them using the ignored board in the same maner. Which is why I thought it was the query. |
|
(0007535) SleePy (Developer) 2009-03-12 20:18 |
Unable to reproduce. |




