Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/19/2015 06:14:47 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Revert r9330 in lieu of original patch on #6099.

When querying for various types and scopes of activity stream items, each BuddyPress component having a unique type or scope also has unique keys and filters responsible for handling the custom queries necessary to get the correct entries from the database.

In some instances (like single groups, member favorites, etc...) these scopes are returning invalid (or empty) results, causing no activity entries to be returned from the database when entries do exist and should be displayed.

Unit tests still apply (though they get some variable clean-up here.)

Hat-tip hnla for discovery. Props r-a-y, imath. Fixes #6140. Fixes #6099.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/activity/template.php

    r9330 r9372  
    353353
    354354        // Create a random activity
    355         $a1 = $this->factory->activity->create( array(
     355        $this->factory->activity->create( array(
    356356            'user_id' => $u1,
    357357            'type' => 'activity_update',
     
    386386
    387387        // Create a random activity
    388         $a1 = $this->factory->activity->create( array(
     388        $this->factory->activity->create( array(
    389389            'user_id' => $u1,
    390390            'type' => 'activity_update',
     
    419419
    420420        // Create a random activity
    421         $a1 = $this->factory->activity->create( array(
     421        $this->factory->activity->create( array(
    422422            'user_id' => $u1,
    423423            'type' => 'activity_update',
     
    452452
    453453        // Create a random activity
    454         $a1 = $this->factory->activity->create( array(
     454        $this->factory->activity->create( array(
    455455            'user_id' => $u1,
    456456            'type' => 'activity_update',
Note: See TracChangeset for help on using the changeset viewer.