The 7.x-2.7 release today has a typo

Notice: Undefined variable: language in media_field_widget_form() (line 143 of ../media/includes/media.fields.inc)

if (isset($host->$language)) {
  $element['#media_parent_entity_form_langcode'] = $host->language;
    $element['#media_parent_entity_source_langcode'] = $host->language;
  }
}

should be:

if (isset($host->language)) {
  $element['#media_parent_entity_form_langcode'] = $host->language;
    $element['#media_parent_entity_source_langcode'] = $host->language;
  }
}
CommentFileSizeAuthor
#2 2886610_typo-host-language--2.patch630 bytesnsciacca
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nsciacca created an issue. See original summary.

nsciacca’s picture

joseph.olstad’s picture

Status: Active » Fixed

thanks for catching this.. !!!
tagging a new release now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.