Opened 19 years ago
Closed 17 years ago
#1757 closed defect (bug) (fixed)
Category caculation not right
Reported by: | Melodiefabrieknl | Owned by: | rob1n |
---|---|---|---|
Milestone: | 2.2 | Priority: | normal |
Severity: | normal | Version: | 1.5.2 |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description
On my site I have this subcategory 'Propellerhead Reason' showing it contains 29 posts. If I check the Admin-page (Manage-Categories) it states 30 posts!
This seems to be a bug. Are the developers aware of it?
Attachments (1)
Change History (8)
Note: See
TracTickets for help on using
tickets.
The problem here seems to be that the admin page and the list_cats function are counting posts using different methods. list_cats is using joins to eliminate pages from inclusion, the admin page is not. For some reason pages are filed as having a category ID as one. This seems to be an desing flaw in pages.
I will attach a patch that makes the admin page list the number of posts in a category in the same way as list_cats, but the real problem is that pages really shouldn't have a category at all.