Commit 3fcfc622 authored by fubhy's avatar fubhy Committed by fago

Issue #2051405 by fubhy: Fixed Metadata wrappers do not work with...

Issue #2051405 by fubhy: Fixed Metadata wrappers do not work with non-fieldable entities with bundles.
parent c63faa1b
......@@ -662,7 +662,7 @@ class EntityDrupalWrapper extends EntityStructureWrapper {
$this->bundle = $this->type;
}
// Detect the bundle if not set yet and add in properties from the bundle.
elseif (!$this->bundle && !empty($this->entityInfo['fieldable']) && $load && $this->dataAvailable()) {
elseif (!$this->bundle && $load && $this->dataAvailable()) {
try {
if ($entity = $this->value()) {
list($id, $vid, $bundle) = entity_extract_ids($this->type, $entity);
......
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