Commit 6f43a9b0 authored by cilefen's avatar cilefen Committed by Ra Mänd
Browse files

Issue #2880750 by cilefen: Notice: Undefined index: entity keys in...

Issue #2880750 by cilefen: Notice: Undefined index: entity keys in entity_extract_ids() when deleting existing field collection items
parent 5f127681
......@@ -644,7 +644,7 @@ function field_collection_field_update($host_entity_type, $host_entity, $field,
$items_to_remove = array_diff($ids, $current_by_id);
// Delete unused field collection items now.
foreach (field_collection_item_load_multiple($items_to_remove) as $un_item) {
$un_item->updateHostEntity($host_entity);
$un_item->updateHostEntity($host_entity, $host_entity_type);
$un_item->deleteRevision(TRUE);
}
}
......
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