#6033 closed defect (bug) (fixed)
Group home filters do not work when the activity component is disabled
Reported by: | vimes1984 | Owned by: | r-a-y |
---|---|---|---|
Milestone: | 2.2 | Priority: | normal |
Severity: | normal | Version: | 1.7 |
Component: | Groups | Keywords: | has-patch commit |
Cc: |
Description (last modified by )
When the activity component is deactivated and you click on a group home page, the default loaded template part is now the group members template loop:
https://buddypress.trac.wordpress.org/browser/tags/2.1.1/src/bp-templates/bp-legacy/buddypress/groups/single/home.php#L36
If you attempt to use the dropdown filters or the ajax search functions to filter the group members, they do not work.
The JS needs some tweaking to fix this.
Attachments (4)
Change History (20)
#1
@
10 years ago
- Keywords needs-patch added; has-patch removed
Thanks for reporting the issue, vimes1984.
Can someone else run a diff of this file against trac? Then we can test/review, and move to an appropriate milestone.
#7
@
10 years ago
Yay!
I can't reproduce this though. I'm creating a new group and the search and filters work. Then, even if I delete the activity about creating the group, they still work.
Can you tell me a little more about it -- ideally the exact steps to take to reproduce the issue.
#8
@
10 years ago
I created a new group and had a list of members in it due to having no activity it defaulted onto the members loop page tempalte on the home page... and the filters nor search worked....
#9
@
10 years ago
Christ that reads awfully...
Ok I created a group with no activity, it then defaults to the members loop on the home page of the group.
Like this neigther the search nor the filters work...
Changed themes to default removed all plugins and nada...
Using Buddypress Version 2.1.1
and Wordpress Version 4.0
#10
@
10 years ago
- Description modified (diff)
- Keywords has-patch added; needs-patch removed
- Milestone changed from Awaiting Review to 2.2
- Owner set to r-a-y
- Status changed from new to assigned
- Summary changed from Groups Home templates no activity ajx not working.. to Group home filters do not work when the activity component is disabled
- Version changed from 2.0.3 to 1.7
I've duplicated the issue when I deactivate the activity component from "Settings > BuddyPress > Components" admin page in the WP admin dashboard.
I think the fix proposed by vimes1984 works, but needs to be tweaked to check that what is loaded on the page is the group members template part.
Assigning to myself for a closer look.
#12
@
10 years ago
- Keywords has-patch added; needs-patch removed
02.patch
sets the object
and scope
when the group members template is in use.
This is better than checking explicitly for the home
object as in 01.diff
.
patched bp-legacy buddypress.js