Similar to a previous issue reported, the static caching used in user_relationships_load_all_for_user makes it so that once a user's relationships have been loaded, they can't change in the course of a request. This prevents me from using SimpleTest to create relationships and confirm them because it must all happen within one request. There at least needs to be a way to clear the static cache.

function user_relationships_load_all_for_user($uid) {
  static $relationships = array();

  if (!key_exists($uid, $relationships)) {

Comments

sprsquish’s picture

Status: Active » Fixed

fixed on 5x-1.1 and 5x-2.x-dev

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.