Commit 0174509c authored by nsciacca's avatar nsciacca Committed by joseph.olstad

Issue #2886610 by nsciacca: Typo for $host->$language

parent 8af4f1f2
......@@ -140,7 +140,7 @@ function media_field_widget_form(&$form, &$form_state, $field, $instance, $langc
}
else if ($element['#entity_type'] == 'paragraphs_item' && !empty($form['#entity'])) {
$host = $element['#entity']->hostEntity();
if (isset($host->$language)) {
if (isset($host->language)) {
$element['#media_parent_entity_form_langcode'] = $host->language;
$element['#media_parent_entity_source_langcode'] = $host->language;
}
......
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