commons_bw_generate_group_widget() incorrectly calculates the row count for views in the widget tabs.

To reproduce:
* Install fresh commons installation, with demo content
* Observe that all tab counts are 0, despite presence of default content.

It seems that the number actually reflects the number of rows authored by the current user. I.E., if I personally create new content, it is content in the tab count.

CommentFileSizeAuthor
#4 commons_bw.wrong_tab_count.patch560 bytesjpontani

Comments

grasmash’s picture

After more thought, I see that it is actually only counting nodes that I follow. Perhaps this works as designed, but it seems as though the total number of posts should be reflected here.

ezra-g’s picture

Component: Activity/status streams » Code
Issue tags: +Commons 7.x-3.3 radar

I've experienced this with the count on the "Wikis" tab in one instance, though it could be related to another factor that coincidentally happens to express itself through the wiki count.

Adding to the 3.3 radar.

jpontani’s picture

Assigned: Unassigned » jpontani
jpontani’s picture

Status: Active » Needs review
StatusFileSize
new560 bytes

Attached a patch that forces 'All' for flagged filter on all BW views when getting tab counts.

BarisW’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the patch. This fixes the problem perfectly.

ezra-g’s picture

Version: » 7.x-3.x-dev
Status: Reviewed & tested by the community » Fixed

Automatically closed -- issue fixed for 2 weeks with no activity.