Closed (fixed)
Project:
Drupal core
Version:
4.5.2
Component:
forum.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2005 at 15:09 UTC
Updated:
24 Jul 2005 at 13:14 UTC
Similar problems with forum.module, when some node access module is used, were already reported and fixed - see http://drupal.org/node/11871
When using forum.module with taxonomy_access.module and multiple roles, I've encountered two more places which need DISTINCT() in queries - topic counts in forums listing, and new comments count in topic listing. Here's a patch which fixes them.
| Comment | File | Size | Author |
|---|---|---|---|
| forum_fix_counts_with_node_access.patch | 2.47 KB | menesis |
Comments
Comment #1
Steven commentedThis sounds like it needs to be fixed by calling db_rewrite_sql() instead.
Comment #2
menesis commentedI should have been more clear - this problem and patch is for DRUPAL-4-5. In HEAD this is correct already.
Comment #3
praseodym commented