Commit 777fe746 authored by RuudSimons's avatar RuudSimons Committed by Ra Mänd
Browse files

Issue #3052122 by Ruuds: EntityMalformedException: Permission to create a node...

Issue #3052122 by Ruuds: EntityMalformedException: Permission to create a node was requested but no node type was given. in entity_metadata_no_hook_node_access()
parent e1c4a8c9
...@@ -342,7 +342,7 @@ class FieldCollectionItemEntity extends Entity { ...@@ -342,7 +342,7 @@ class FieldCollectionItemEntity extends Entity {
if ($this->isInUse()) { if ($this->isInUse()) {
$data_array_keys = array_keys($data); $data_array_keys = array_keys($data);
$this->hostEntityId = $data ? $data_array_keys : FALSE; $this->hostEntityId = $data ? end($data_array_keys) : FALSE;
$this->hostEntityRevisionId = FALSE; $this->hostEntityRevisionId = FALSE;
} }
// If we are querying for revisions, we get the revision ID. // If we are querying for revisions, we get the revision ID.
......
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