Commit ec002e8b authored by dutchyoda's avatar dutchyoda Committed by joseph.olstad

Issue #2593377 by malcomio, dutchyoda: "Include file in display" has no effect...

Issue #2593377 by malcomio, dutchyoda: "Include file in display" has no effect with media browser widget fields
parent 3c18ad49
......@@ -202,7 +202,7 @@ function media_field_widget_value($element, $input = FALSE, $form_state) {
// If the display field is present make sure its unchecked value is saved.
$field = field_widget_field($element, $form_state);
if (empty($input['display'])) {
$input['display'] = intval(empty($field['settings']['display_field']));
$input['display'] = !empty($field['settings']['display_field']) ? 0 : 1;
}
}
......
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