Commit 0ef162bb authored by rhristov's avatar rhristov Committed by Renato Gonçalves H
Browse files

Issue #2989733 by rhristov, RenatoG, sleepingmonk: Diff. Throws an error if...

Issue #2989733 by rhristov, RenatoG, sleepingmonk: Diff. Throws an error if the field collection item is deleted
parent 1c8f530c
......@@ -25,6 +25,10 @@ function field_collection_field_render_revision($item, $context) {
$view_mode = $context['view_mode'];
$entity = entity_revision_load($entity_type, $item['revision_id']);
if(empty($entity)) {
return array();
}
$field_context = $context;
$field_context['entity_type'] = $entity_type;
$field_context['bundle'] = $bundle_name;
......
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