Skip to:
Content

BuddyPress.org

Changeset 12774


Ignore:
Timestamp:
11/08/2020 09:19:15 AM (3 weeks ago)
Author:
imath
Message:

BP Nouveau: make sure Ajax searching in single Group works as expected

When the custom front template is not active, the activity template is loaded as the Group's home page. In this case we need to make sure the search form selectors IDs are including the "activity" reference instead of the "home" one. If the Activity component is not active, Group's home is the members template: we also need to make sur the corresponding search form selectors IDs are including the "member" reference instead of the "home" one.

Props corsky, vapvarun

Fixes #8386

File:
1 edited

Legend:

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

    r12735 r12774  
    17911791    } elseif ( 'group' === $primary ) {
    17921792        $objects['secondary'] = bp_current_action();
     1793
     1794        if ( bp_is_group_home() && ! bp_is_group_custom_front() ) {
     1795            $objects['secondary'] = 'members';
     1796
     1797            if ( bp_is_active( 'activity' ) ) {
     1798                $objects['secondary'] = 'activity';
     1799            }
     1800        }
    17931801    } else {
    17941802
Note: See TracChangeset for help on using the changeset viewer.