Commit 12006390 authored by Dries's avatar Dries
Browse files

- Patch #714350 by marcvangend, yrocq: fixed undefined index: display_field()...

- Patch #714350 by marcvangend, yrocq: fixed undefined index: display_field() in file_field_widget_form() in file.field.inc.
parent 573bdba9
......@@ -313,6 +313,10 @@ function image_field_widget_settings_form($field, $instance) {
* Implements hook_field_widget_form().
*/
function image_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
// Add display_field setting to field because file_field_widget_form() assumes it is set.
$field['settings']['display_field'] = 0;
$elements = file_field_widget_form($form, $form_state, $field, $instance, $langcode, $items, $delta, $element);
$settings = $instance['settings'];
......
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