Commit bede7c00 authored by ezra-g's avatar ezra-g Committed by amitaibu

Issue #2224509 by ezra-g | Amitaibu: Fix loading only active memberships.

parent d187c93a
......@@ -930,7 +930,7 @@ function _og_update_entity_fields($entity_type, $entity) {
}
else {
$target_type = $field['settings']['target_type'];
$gids = og_get_entity_groups($entity_type, $entity, array(OG_STATE_ACTIVE), $field_name);
$gids = og_get_entity_groups($entity_type, $entity, array(), $field_name);
$gids = !empty($gids[$target_type]) ? $gids[$target_type] : array();
}
if ($gids) {
......
......@@ -27,7 +27,7 @@ class OgBehaviorHandler extends EntityReference_BehaviorHandler_Abstract {
}
$id = $wrapper->getIdentifier();
$items[$id] = array();
$gids = og_get_entity_groups($entity_type, $entity, array(OG_STATE_ACTIVE), $field_name);
$gids = og_get_entity_groups($entity_type, $entity, array(), $field_name);
if (empty($gids[$target_type])) {
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment