updated core to 7.65
This commit is contained in:
2
modules/file/file.field.inc
Executable file → Normal file
2
modules/file/file.field.inc
Executable file → Normal file
@@ -599,7 +599,7 @@ function file_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'] = $field['settings']['display_field'] ? 0 : 1;
|
||||
$input['display'] = !empty($field['settings']['display_field']) ? 0 : 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user