Projects ⇒ Bugs ⇒ #440: albums/pictures in sub-categories don't list count in parent ⇒ CPG Dragonfly™ CMS
Bug #440 albums/pictures in sub-categories don't list count in parent
Project: Dragonfly 9.0.3 -> 9.3 Category: Coppermine
Submitted: Wednesday, April 13, 2005 (19:04:57) Modified: Monday, February 26, 2007 (11:03:30)
Status: Closed Assigned to: NanoCaiordo
PHP Version: 4.3.10 HTTPD Server: Apache 2.2
Votes: 7
Vote results:
Avg. Score: 3.9 ± 1.4 Reproduced: 6 of 6 (100.0%)
Same PHP Version: 3 (50.0%) Same HTTPD Server: 2 (33.3%)

View/Vote Add Comment

by: insaner
Description:
------------
Sub-categories and albums within them do not agregate their counts up to the parent category. For example:

Category1 --> Category1a --> Album1a
"" --> Category1b --> Album1b
"" --> "" --> Album2b

Album1a = 50 pics
Album1b = 100 pics
album2b = 150 pics

Category1 will show that it contains 0 albums and 0 pictures. However, it should list that it contains 3 albums and 300 pics. Category1a should say it contains 1 album and 50 pics and Category2b should say it contains 2 albums and 200 pics.

Reproduce code:
---------------
N/A

Expected result:
----------------
Sub-categories should agregrate the picture and album count all the way up to the parent categories. Parent categories that do not contain albums directly underneath should not report 0 albums and 0 pictures, even though they do contain pics inside of them.

A great example is the Windows File System. lets say you create a folder in Windows, C:\DemoFolder, then create a subfolder under that, lets say C:\DemoFolder\Test and put files and folders inside of test. If you look at the propertied of C:\DemoFolder it won't say that it contains 0 files and is 0KB large. That would be deceptive.

Actual result:
--------------
Only categories that contain albums directly report the number of albums and pictures instead of all the way down the tree and hierarchy.
by: DJMaze
This is known issue and exists in all coppermine versions.
by: insaner
any additional information or status on this bug?
by: Emsland-Party.de
HY,

I need these too. I dont had this bug yesterday.

Today, i come on my Site, and i have this bug.... I need urgently help!!!

Please contact me!
by: nitro2k01
I seriously need this bug fix bacuase i dont my subcategories showing up in coppermine front page but rather in on the next but i can only do this if this bug is fixed. I am looking forward to this bug fix.
by: insaner
Anyway to escalate the priority of this bug?
by: NanoCaiordo
This bug has been fixed in the CVS.

Snapshots of the sources are packaged every 6 hours; this change
will be in the next snapshot. You can grab the snapshot at the
Downloads section.

Thank you for the report, and for helping us to make Dragonfly 9.0.3 -> 9.1 better.

support 2 levels only
by: insaner
Just upgraded to 9.1.1 and this still seems to behave exactly the same way, re-opening the ticket.
by: NanoCaiordo
If you set "Number of levels of sub-categories to display" to "1 or more" does coppermine count them correctly?
by: insaner
If I set: "Number of levels of sub-categories to display" then yes, it appears to include sub-categories totals HOWEVER, it also shows the sub-categories on the main page. However, these sub-categories should be summed up and included in the count even if they are not directly displayed.
by: NanoCaiordo
This bug has been fixed in the CVS.

Snapshots of the sources are packaged every 6 hours; this change
will be in the next snapshot. You can grab the snapshot at the
Downloads section.

Thank you for the report, and for helping us to make Dragonfly 9.0.3 -> 9.1 better.
User Info

Welcome Anonymous



(Register)
Community

Support for DragonflyCMS in a other languages:

Deutsch
Español