Opened 4 years ago
Closed 4 years ago
#8342 closed defect (bug) (fixed)
Issue with group activity filter
Reported by: | etatus | Owned by: | imath |
---|---|---|---|
Milestone: | 7.0.0 | Priority: | normal |
Severity: | major | Version: | 3.0.0 |
Component: | Activity | Keywords: | has-patch reporter-feedback |
Cc: |
Description
I detected that in groups activity page the filter didn't work, so checking the code I realized that bp_current_action() and bp_nouveau_current_object() functions were returning 'home' instead 'activity', so the html select didn't work.
If I make changes to let 'home' be a valid value (equivalent to 'activity') in functions:
bp_nouveau_current_object()
bp_nouveau_get_filter_container_id()
bp_nouveau_get_filter_id()
from: buddypress/bp-templates/bp-nouveau/includes/template-tags.php
then the select works fine.
Attachments (1)
Change History (5)
#1
@
4 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 7.0.0
- Version changed from 6.1.0 to 3.0.0
#2
@
4 years ago
- Keywords has-patch reporter-feedback added; needs-patch removed
BP Nouveau is using some data-attributes to check what ajax actions need to be performed. If the Group's front page is not used, Activities are displayed on Group's home page. But the data attributes for the object and filter were wrongly set to home.
To make sure filters are behaving the right way, we need to override the component's object and data filter to activity
so that the data-attributes are set the right way into the markup.
8342.patch should fix the issue, can you confirm @etatus ?
Thanks for your feedback @etatus 👍
I confirm. The issue is only happening if the Group's home page has been disabled from the customizer. I'll try to look at it asap.