Commit 45e381f7 authored by nikhilbanait's avatar nikhilbanait Committed by Ra Mänd
Browse files

Issue #2991561 by Nikhil Banait: Field collection first item remove not trigger

parent 5be6d23a
......@@ -599,7 +599,7 @@ class FieldCollectionItemEntity extends Entity {
entity_get_controller('field_collection_item')->resetCache(array($this->item_id));
entity_revision_delete('field_collection_item', $this->revision_id);
}
if (!$row && !isset($this->hostEntity()->{$this->field_name}[$this->langcode()][$this->delta()])) {
else {
// Delete if there is no existing revision or translation to be saved.
$this->delete($skip_host_update);
}
......
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