Commit ff8dd634 authored by renatog's avatar renatog Committed by Renato Goncalves H
Browse files

Issue #2929401 by RenatoG, hannes.himma, sl45sms: Can't delete last field...

Issue #2929401 by RenatoG, hannes.himma, sl45sms: Can't delete last field collection item in clean install of Open Atrium
parent 8301e5e5
......@@ -56,7 +56,7 @@ function field_collection_field_render_revision($item, $context) {
// We provide a loose check on the field access.
if (field_access('view', $field, $entity_type) || field_access('edit', $field, $entity_type)) {
$langcode = field_language($entity_type, $entity, $field_name);
$langcode = !empty($entity) ? field_language($entity_type, $entity, $field_name) : LANGUAGE_NONE;
$field_context['language'] = $langcode;
$field_context['field'] = $field;
$field_context['instance'] = $instance;
......
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