Commit a39d45fc authored by dsnopek's avatar dsnopek Committed by Ra Mänd
Browse files

Issue #3111102 by dsnopek, cboyden: No longer working with live previews in Panopoly

parent 8e225a7d
......@@ -968,6 +968,11 @@ function field_collection_entity_preload($entities, $langcode, &$items, $fields)
foreach ($entities as $id => $entity) {
foreach ($items[$id] as $delta => $item) {
// Check if the entity already exists.
if (isset($item['entity'])) {
continue;
}
// Check if this item is in our local entity cache.
if (isset($local_entity_cache[$item['value']])) {
$items[$id][$delta]['field_collection'] = $local_entity_cache[$item['value']];
......
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