Commit 25b5cee3 authored by amoebanath's avatar amoebanath Committed by Ra Mänd
Browse files

Issue #2888517 by amoebanath, minorOffense: Language detection is broken in 7.x-1.x-dev

parent 4a8ad852
...@@ -1032,7 +1032,7 @@ function field_collection_field_formatter_view($entity_type, $entity, $field, $i ...@@ -1032,7 +1032,7 @@ function field_collection_field_formatter_view($entity_type, $entity, $field, $i
} }
if ($field_collection) { if ($field_collection) {
$element[$delta]['entity'] = $field_collection->view($view_mode, $langcode); $element[$delta]['entity'] = $field_collection->view($view_mode);
$element[$delta]['#theme_wrappers'] = array('field_collection_view'); $element[$delta]['#theme_wrappers'] = array('field_collection_view');
$element[$delta]['#attributes']['class'][] = 'field-collection-view'; $element[$delta]['#attributes']['class'][] = 'field-collection-view';
$element[$delta]['#attributes']['class'][] = 'clearfix'; $element[$delta]['#attributes']['class'][] = 'clearfix';
...@@ -1065,7 +1065,7 @@ function field_collection_field_formatter_view($entity_type, $entity, $field, $i ...@@ -1065,7 +1065,7 @@ function field_collection_field_formatter_view($entity_type, $entity, $field, $i
$view_mode = !empty($display['settings']['view_mode']) ? $display['settings']['view_mode'] : 'full'; $view_mode = !empty($display['settings']['view_mode']) ? $display['settings']['view_mode'] : 'full';
foreach ($items as $delta => $item) { foreach ($items as $delta => $item) {
if ($field_collection = field_collection_field_get_entity($item)) { if ($field_collection = field_collection_field_get_entity($item)) {
$element[$delta]['entity'] = $field_collection->view($view_mode, $langcode); $element[$delta]['entity'] = $field_collection->view($view_mode);
} }
} }
break; break;
......
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