diff --git a/includes/common.inc b/includes/common.inc index ff8b211..d44b4e6 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -7358,7 +7358,9 @@ function entity_load($entity_type, $ids = FALSE, $conditions = array(), $reset = if ($reset) { entity_get_controller($entity_type)->resetCache(); } - return entity_get_controller($entity_type)->load($ids, $conditions); + $entity = entity_get_controller($entity_type)->load($ids, $conditions); + $entity->entity_type = $entity_type; + return $entity; } /**