Commit a4ac052b authored by RoSk0's avatar RoSk0 Committed by Joel Muzzerall
Browse files

Issue #2453777 by RoSk0: Fixed logic issue in updateHostEntity().

parent 39c8b432
......@@ -213,7 +213,8 @@ class FieldCollectionItemEntity extends Entity {
/**
* Updates the wrapped host entity object.
*
* @param $entity
* @param object $entity
* Host entity.
*/
public function updateHostEntity($entity) {
$this->fetchHostDetails();
......@@ -231,7 +232,7 @@ class FieldCollectionItemEntity extends Entity {
$this->hostEntity = $entity;
$delta = $this->delta();
if (isset($entity->{$this->field_name}[$this->langcode][$delta]['entity'])) {
$entity->{$this->field_name}[$this->langcode][$delta]['entity'] = $entity;
$entity->{$this->field_name}[$this->langcode][$delta]['entity'] = $this;
}
}
else {
......
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