Commit 96ca8ca8 authored by darthsteven's avatar darthsteven Committed by Renato Goncalves H
Browse files

Issue #2993080 by Steven Jones, RenatoG: "The host entity cannot be changed" -...

Issue #2993080 by Steven Jones, RenatoG: "The host entity cannot be changed" - error saving non-current version
parent 5a0f9cad
......@@ -231,7 +231,7 @@ class FieldCollectionItemEntity extends Entity {
}
list($recieved_id) = entity_extract_ids($this->hostEntityType, $entity);
if ($this->isInUse()) {
if ($this->isInUse() && !empty($this->hostEntityId)) {
$current_id = $this->hostEntityId;
}
else {
......
Supports Markdown
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