Skip to:
Content

BuddyPress.org

Changeset 12037


Ignore:
Timestamp:
05/02/2018 03:52:11 PM (7 years ago)
Author:
imath
Message:

BP Nouveau: use right Ajax action to filter single group activities

The Ajax action needs to be "activity_filter". JavaScript is building this argument using the "data-bp-filter" attribute of the activity type dropdown which needs to be set to "activity".

Fixes #7789

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/bp-templates/bp-nouveau/includes/template-tags.php ΒΆ

    r12028 r12037  
    19161916        $component['members_order_by'] = 'groups_members-order-by';
    19171917        $component['object']           = bp_current_action();
    1918         $component['data_filter']      = 'group_' . bp_current_action();
     1918        $component['data_filter']      = bp_current_action();
     1919
     1920        if ( 'activity' !== bp_current_action() ) {
     1921            $component['data_filter'] = 'group_' . bp_current_action();
     1922        }
    19191923
    19201924    } else {
Note: See TracChangeset for help on using the changeset viewer.