Commit 1913cdf5 authored by zorya's avatar zorya Committed by Ra Mänd
Browse files

Issue #3083368 by zorya: Collection values lost on save in revisions

parent 8d29cabe
...@@ -1018,9 +1018,10 @@ function field_collection_entity_preload($entities, $langcode, &$items, $fields) ...@@ -1018,9 +1018,10 @@ function field_collection_entity_preload($entities, $langcode, &$items, $fields)
} }
} }
} }
// Otherwise, unset the instance value, since the field colletion entity // Otherwise, check to see if the instance's field_collection value has
// does not exist. // already been set. If not, unset the instance value, since the field
else { // collection entity does not exist.
elseif (!isset($items[$id][$delta]['field_collection'])) {
unset($new_items[$id][$delta]); unset($new_items[$id][$delta]);
$rekey = TRUE; $rekey = TRUE;
} }
......
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